Merge pull request #162 from ltctceplrm/foreignlanguage

Added support for remapping fields to foreign languages
This commit is contained in:
Moritz Jung 2025-01-14 21:05:57 +01:00 committed by GitHub
commit e7ea9ab41a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ export function wrapAround(value: number, size: number): number {
}
export function containsOnlyLettersAndUnderscores(str: string): boolean {
return /^[a-zA-Z_]+$/.test(str);
return /^[\p{Letter}\p{M}_]+$/u.test(str);
}
export function replaceIllegalFileNameCharactersInString(string: string): string {