Meta data field customization #19
This commit is contained in:
parent
b4e40d2daa
commit
78ee146b71
8 changed files with 247 additions and 11 deletions
|
|
@ -17,6 +17,10 @@ export function debugLog(o: any): void {
|
|||
}
|
||||
}
|
||||
|
||||
export function containsOnlyLettersAndUnderscores(str: string): boolean {
|
||||
return /^[a-zA-Z_]+$/.test(str);
|
||||
}
|
||||
|
||||
export function replaceIllegalFileNameCharactersInString(string: string): string {
|
||||
return string.replace(/[\\,#%&{}/*<>$"@.?]*/g, '').replace(/:+/g, ' -');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue