Commit acf022f
committed
fix(translationtool) Fix f5562bf "Only handle vue template with custom parser".
Vue files can contain multiple (2, to be exact) script sections, one for
setup, composition API, and one "ordinary" script section for the
options API. At least fro Vue 2 both are at least wanted and maybe even
needed and even with Vue 3 this is legal, see
https://vuejs.org/api/sfc-spec.html
This commit changes f5562bf and uses preg_match_all() with a look-ahead
pattern in order to capture all script blocks.
Fixes #799.
Signed-off-by: Claus-Justus Heine <[email protected]>1 parent 9e9b61a commit acf022f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
0 commit comments