Skip to content

Commit 6bf4275

Browse files
committed
fix: regex for versioning
1 parent 64b4f14 commit 6bf4275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const replaceInFile = (filename: string, transform: (contents: string) => string
1111
replaceInFile(
1212
'src/code-snippets.php',
1313
contents => contents
14-
.replace(/(?<prefix>Version:\s+|@version\s+)\d+\.\d+[\w-.]+$/mg, `$1${plugin.version}`)
14+
.replace(/(?<prefix>Version:\s+|@version\s+)\d+\.\d+\.\d+[\w-.]*$/mg, `$1${plugin.version}`)
1515
.replace(/(?<prefix>'CODE_SNIPPETS_VERSION',\s+)'[\w-.]+'/, `$1'${plugin.version}'`)
1616
)
1717

0 commit comments

Comments
 (0)