Fix pattern creation

js-version
Anton Medvedev 6 years ago
parent beedbfd36a
commit a696018fa5

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

Loading…
Cancel
Save