We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b49516c commit 6110cdbCopy full SHA for 6110cdb
component.js
@@ -7,7 +7,7 @@ exports.handlers = {
7
beforeParse: function(e) {
8
if (path.extname(e.filename) === '.vue') {
9
e.componentInfo = vueDocs.parse(e.filename)
10
- var script = e.source.match(/<script>(.*?)<\/script>/s)
+ var script = e.source.match(new RegExp('<script>(.*?)<\/script>', 's'))
11
e.source = script[1]
12
}
13
},
0 commit comments