git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dieren: fill last placeholders and improve existing words
[sheet.git]
/
searchlocal.js
diff --git
a/searchlocal.js
b/searchlocal.js
index 512f07b8482cf1bf293e16c09d385a6178fb014a..6498e32e06c196aa0a6669ed1ae573c33933058f 100644
(file)
--- a/
searchlocal.js
+++ b/
searchlocal.js
@@
-106,7
+106,7
@@
if (document.querySelector !== undefined) {
else {
// title text (case-insensitive unless caps in input)
var match = function(row) {
else {
// title text (case-insensitive unless caps in input)
var match = function(row) {
- return row.cells[1].textContent.match(
query, /[A-Z]/.test(query) ? '' : 'i'
);
+ return row.cells[1].textContent.match(
new RegExp(query, /[A-Z]/.test(query) ? '' : 'i')
);
};
}
filterrows(table, match, action || 'filter');
};
}
filterrows(table, match, action || 'filter');