Skip to content

Commit 6110cdb

Browse files
committed
fix error on pattern delimiters
1 parent b49516c commit 6110cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports.handlers = {
77
beforeParse: function(e) {
88
if (path.extname(e.filename) === '.vue') {
99
e.componentInfo = vueDocs.parse(e.filename)
10-
var script = e.source.match(/<script>(.*?)<\/script>/s)
10+
var script = e.source.match(new RegExp('<script>(.*?)<\/script>', 's'))
1111
e.source = script[1]
1212
}
1313
},

0 commit comments

Comments
 (0)