mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 23:26:07 +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