Skip to content

Commit 18f04a8

Browse files
Update src/Symfony/Component/AssetMapper/Compiler/JavaScriptImportPathCompiler.php
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent 3fc743f commit 18f04a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ final class JavaScriptImportPathCompiler implements AssetCompilerInterface
3131
* @see https://regex101.com/r/1iBAIb/2
3232
*/
3333
private const IMPORT_PATTERN = '/
34-
^
35-
(?:\/\/.*) # Lines that start with comments
34+
^(?:\/\/.*) # Lines that start with comments
3635
|
3736
(?:
3837
\'(?:[^\'\\\\\n]|\\\\.)*+\' # Strings enclosed in single quotes

0 commit comments

Comments
 (0)