mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
Better validation
This commit is contained in:
parent
1936e80539
commit
0b3849a26d
@ -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 New Issue
Block a user