File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ gulp.task( 'generate-translations-js', gulp.series(
107107 // Extract all gettext calls.
108108 . pipe ( collect ( {
109109 file : path . resolve ( __dirname , './dist/translation-strings.js' ) ,
110- regex : / ( \/ \/ t r a n s l a t o r s : ( .* ) ? [ \s \n ] ( .* ) ? ) ? _ .\( ( .* ?) \s ? ( i 1 8 n | S T A C K A B L E _ I 1 8 N ) \s ? \) / g,
110+ regex : / ( \/ \/ t r a n s l a t o r s : ( .* ) ? [ \s \n ] ( .* ) ? ) ? _ .\( \s * [ ' " ] ( .* ?) \s ? ( i 1 8 n | S T A C K A B L E _ I 1 8 N ) \s ? \) / g,
111111 } ) )
112112 } ,
113113 function gatherBlockJsonStrings ( cb ) {
@@ -189,7 +189,7 @@ gulp.task( 'generate-translations-php', gulp.series(
189189 // Extract all gettext calls.
190190 . pipe ( collect ( {
191191 file : 'dist/translation-strings.php' ,
192- regex : / ( \/ \/ t r a n s l a t o r s : ( .* ) ? [ \s \n ] ( .* ) ? ) ? _ .\( ( .* ?) \s ? ( i 1 8 n | S T A C K A B L E _ I 1 8 N ) \s ? \) / g,
192+ regex : / ( \/ \/ t r a n s l a t o r s : ( .* ) ? [ \s \n ] ( .* ) ? ) ? _ .\( \s * [ ' " ] ( .* ?) \s ? ( i 1 8 n | S T A C K A B L E _ I 1 8 N ) \s ? \) / g,
193193 } ) )
194194 } ,
195195 function cleanupPHPTranslationFile ( ) {
You can’t perform that action at this time.
0 commit comments