8000 Improve regexp (thx) · symfony/symfony@7aaf184 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7aaf184

Browse files
committed
Improve regexp (thx)
1 parent 56216e0 commit 7aaf184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/AssetMapper/Compiler/JavaScriptImportPathCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class JavaScriptImportPathCompiler implements AssetCompilerInterface
4949
|
5050
\bimport\(
5151
)
52-
\s*[\'"`](\.\/[^\'"`]+|(\.\.\/)*[^\'"`]+)[\'"`]\s*[;\)]
52+
\s*[\'"`](\.\/[^\'"`\n]+|(\.\.\/)*[^\'"`\n]+) 466D [\'"`]\s*[;\)]
5353
?
5454
/mx';
5555

0 commit comments

Comments
 (0)
0