8000 Replace \p{L} with the u modifier in the regex to match utf-8 characters · symfony/symfony@a46f18f · GitHub
[go: up one dir, main page]

Skip to content

Commit a46f18f

Browse files
committed
Replace \p{L} with the u modifier in the regex to match utf-8 characters
1 parent ee77388 commit a46f18f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ final class JavaScriptImportPathCompiler implements AssetCompilerInterface
4242
(?: # Import statements (script captured)
4343
import\s*
4444
(?:
45-
(?:\*\s*as\s+\w+|\s+[\p{L}\w\s{},*]+)
45+
(?:\*\s*as\s+\w+|\s+[\w\s{},*]+)
4646
\s*from\s*
4747
)?
4848
|
4949
\bimport\(
5050
)
5151
\s*[\'"`](\.\/[^\'"`\n]++|(\.\.\/)*+[^\'"`\n]++)[\'"`]\s*[;\)]
5252
?
53-
/mx';
53+
/mxu';
5454

5555
public function __construct(
5656
private readonly ImportMapConfigReader $importMapConfigReader,

0 commit comments

Comments
 (0)
0