fix(github): recognize full-width PR title colons

This commit is contained in:
t8y2
2026-07-31 13:00:30 +08:00
parent a71104be5f
commit da53d207db
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ function normalizeChangedFiles(changedFiles) {
function conventionalType(title) {
const normalized = String(title || "").trim().replace(/^[^\p{L}\p{N}]+/u, "");
return /^([a-z]+)(?:\([^)]*\))?!?:/i.exec(normalized)?.[1]?.toLowerCase() || null;
return /^([a-z]+)(?:\([^)]*\))?!?[::]/i.exec(normalized)?.[1]?.toLowerCase() || null;
}
export function isDocumentationFile(file) {