Fix pattern creation

pull/64/head
Anton Medvedev 6 years ago
parent beedbfd36a
commit a696018fa5

@ -171,7 +171,7 @@ module.exports = function start(filename, source) {
} catch (e) { } catch (e) {
// Wrong regexp. // Wrong regexp.
} }
} } else {
m = pattern.match(/^\/(.*)$/) m = pattern.match(/^\/(.*)$/)
if (m) { if (m) {
try { try {
@ -180,6 +180,7 @@ module.exports = function start(filename, source) {
// Wrong regexp. // Wrong regexp.
} }
} }
}
highlight = regex highlight = regex
if (highlight) { if (highlight) {

Loading…
Cancel
Save