handle lower case am/pm in macos screenshot names (#3194)

This commit is contained in:
Jack Rose
2026-04-15 20:00:46 +10:00
committed by GitHub
parent a3666344f4
commit d22c120b82
2 changed files with 16 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ function normalizeUnicodeSpaces(str: string): string {
}
function tryMacOSScreenshotPath(filePath: string): string {
return filePath.replace(/ (AM|PM)\./g, `${NARROW_NO_BREAK_SPACE}$1.`);
return filePath.replace(/ (AM|PM)\./gi, `${NARROW_NO_BREAK_SPACE}$1.`);
}
function tryNFDVariant(filePath: string): string {