Skip to content
Snippets Groups Projects
Commit 8eca1bc7 authored by Akeksandr Motsjonov's avatar Akeksandr Motsjonov Committed by Marijn Haverbeke
Browse files

SearchCursor.matches() doesn't work properly if query is /.*/ issue #1155

parent 4857377f
No related branches found
No related tags found
Loading
......@@ -30,7 +30,7 @@
var line = cm.getLine(pos.line), match = query.exec(line),
start = match && match.index;
}
if (match)
if (match && match[0])
return {from: {line: pos.line, ch: start},
to: {line: pos.line, ch: start + match[0].length},
match: match};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment