mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Better validation
This commit is contained in:
parent
1936e80539
commit
0b3849a26d
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
export function safeForSql(text: string): boolean {
|
||||
return /[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text);
|
||||
return !/[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue