diff --git a/tools/changelogger/class-package-formatter.php b/tools/changelogger/class-package-formatter.php index d4d10ddcd97..03add787d82 100644 --- a/tools/changelogger/class-package-formatter.php +++ b/tools/changelogger/class-package-formatter.php @@ -49,7 +49,7 @@ class Package_Formatter extends Formatter implements FormatterPlugin { */ public function getReleaseLink( $version ) { // Catpure anything past /woocommerce in the current working directory. - preg_match( '/\/woocommerce\/packages\/js\/(.+)/', getcwd(), $path ); + preg_match( '/\/packages\/js\/(.+)/', getcwd(), $path ); if ( ! count( $path ) ) { throw new \InvalidArgumentException( 'Invalid directory.' );