X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/d2ca80f8d1714a6ea6f8184cfa58b67bf0720f2c..f544f1d7860235fa4d86348e66deb3e1d5f0634a:/searchlocal.js diff --git a/searchlocal.js b/searchlocal.js index eb284b7..99bffb2 100644 --- a/searchlocal.js +++ b/searchlocal.js @@ -67,7 +67,7 @@ function filtertable(query, action) { query = match[2]; } - if (document.querySelector('.b-a-'+query)) { + if (/^[a-z_]+$/.test(query) && document.querySelector('.b-a-'+query)) { // column if class b-a-* exists var match = function(th) { return new RegExp('-'+query+'\\b').test(th.className);