mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 02:57:23 +09:00
17 lines
202 B
TypeScript
17 lines
202 B
TypeScript
const invalidChars = [
|
||
'@',
|
||
'#',
|
||
'*',
|
||
':',
|
||
'(',
|
||
')',
|
||
'[',
|
||
']',
|
||
' ',
|
||
' ',
|
||
];
|
||
|
||
export function safeForInterpolate(text: string): boolean {
|
||
return !invalidChars.some(c => text.includes(c));
|
||
}
|