Better validation
This commit is contained in:
@ -1,3 +1,3 @@
|
|||||||
export function safeForSql(text: string): boolean {
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user