Add single-quote to dangerous chars

This commit is contained in:
2021-01-07 15:59:56 -08:00
parent b7e924448f
commit 1073c96eee
+1 -1
View File
@@ -16,7 +16,7 @@ const PER_PAGE = 100
*/
function safeQuery(q) {
let q2 = q.trim()
if (q2.match(/[-./]/)) {
if (q2.match(/[-./']/)) {
q2 = `"${q2}"`
}
if (q2.match(/\+/)) {