Skip to content

Commit 42c414d

Browse files
committed
🐛Fix: Release asset regex for plugin-update-checker
Fix a bug where the regex pattern matching release assets for the plugin update check is missing delimiters.
1 parent 5e07102 commit 42c414d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function init_plugin_update_checker(): void {
5858
$puc_github_api = $plugin_update_checker->getVcsApi();
5959

6060
// Enable release assets for the plugin.
61-
$puc_github_api->enableReleaseAssets( '.*disable-wp-frontend\.zip.*', Api::REQUIRE_RELEASE_ASSETS );
61+
$puc_github_api->enableReleaseAssets( '/.*disable-wp-frontend\.zip.*/', Api::REQUIRE_RELEASE_ASSETS );
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)