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