Skip to content

Commit

Permalink
Merge pull request #75 from chromakode/from-regex-specificity
Browse files Browse the repository at this point in the history
Increase specificity of "from ... import ..." regex.
  • Loading branch information
Martin Hunt committed Dec 8, 2014
2 parents 9c09722 + 653a3f6 commit 1baa232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preprocessors/import.js
@@ -1,4 +1,4 @@
var importExpr = /^(\s*)(import\s+[^=+*"'\r\n;\/]+|from\s+[^=+"'\r\n;\/]+)(;|\/|$)/gm;
var importExpr = /^(\s*)(import\s+[^=+*"'\r\n;\/]+|from\s+[^=+"'\r\n;\/ ]+\s+import\s+[^=+"'\r\n;\/]+)(;|\/|$)/gm;

function replace(raw, p1, p2, p3) {
if (!/\/\//.test(p1)) {
Expand Down

0 comments on commit 1baa232

Please sign in to comment.