Skip to content

Commit 95b0b20

Browse files
committed
Fix preg_match
1 parent a92af64 commit 95b0b20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Core_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function uninstall( $args, $assoc_args ) {
293293

294294
if (
295295
! in_array( $file, $files_to_remove, true ) &&
296-
! preg_match( "$language_code-\w{32}\.json", $file )
296+
! preg_match( "/$language_code-\w{32}\.json/", $file )
297297
) {
298298
continue;
299299
}

src/Plugin_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public function uninstall( $args, $assoc_args ) {
491491

492492
if (
493493
! in_array( $file, $files_to_remove, true ) &&
494-
! preg_match( "$plugin-$language_code-\w{32}\.json", $file )
494+
! preg_match( "/$plugin-$language_code-\w{32}\.json/", $file )
495495
) {
496496
continue;
497497
}

src/Theme_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function uninstall( $args, $assoc_args ) {
502502

503503
if (
504504
! in_array( $file, $files_to_remove, true ) &&
505-
! preg_match( "$theme-$language_code-\w{32}\.json", $file )
505+
! preg_match( "/$theme-$language_code-\w{32}\.json/", $file )
506506
) {
507507
continue;
508508
}

0 commit comments

Comments
 (0)