Commit d9cecb7
committed
bug symfony#58659 [AssetMapper] Fix
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[AssetMapper] Fix `JavaScriptImportPathCompiler` regex for non-latin characters
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#58657
| License | MIT
Update the regex in `JavaScriptImportPathCompiler` so that imported functions having non-latin characters still match the regex.
### Example
```
import { ɵmyFunction } from './others.js'
```
The code above was not working prio to this fix, because of the `ɵ`
Commits
-------
5887c99 [AssetMapper] Fix `JavaScriptImportPathCompiler` regex for non-latin charactersJavaScriptImportPathCompiler regex for non-latin characters (GregRbs92)File tree
2 files changed
+17
-1
lines changed- src/Symfony/Component/AssetMapper
- Compiler
- Tests/Compiler
2 files changed
+17
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
175 | 191 | | |
176 | 192 | | |
177 | 193 | | |
| |||
0 commit comments