We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64b4f14 commit 6bf4275Copy full SHA for 6bf4275
scripts/version.ts
@@ -11,7 +11,7 @@ const replaceInFile = (filename: string, transform: (contents: string) => string
11
replaceInFile(
12
'src/code-snippets.php',
13
contents => contents
14
- .replace(/(?<prefix>Version:\s+|@version\s+)\d+\.\d+[\w-.]+$/mg, `$1${plugin.version}`)
+ .replace(/(?<prefix>Version:\s+|@version\s+)\d+\.\d+\.\d+[\w-.]*$/mg, `$1${plugin.version}`)
15
.replace(/(?<prefix>'CODE_SNIPPETS_VERSION',\s+)'[\w-.]+'/, `$1'${plugin.version}'`)
16
)
17
0 commit comments