@quiteer/scripts 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import enquirer from "enquirer";
12
12
  import { versionBump } from "bumpp";
13
13
 
14
14
  //#region package.json
15
- var version = "0.1.3";
15
+ var version = "0.1.4";
16
16
 
17
17
  //#endregion
18
18
  //#region src/locales/changelog.ts
@@ -1025,8 +1025,8 @@ async function updatePkg(args = ["--deep", "-u"]) {
1025
1025
  */
1026
1026
  function parseBranchToVersion(branch) {
1027
1027
  if (!branch) return "";
1028
- const match = branch.match(/^dev-(\d+\.\d+\.\d+\.\d+(?:-[a-z0-9]+)?)$/);
1029
- if (match && match[1]) return `v${match[1]}`;
1028
+ const match = branch.match(/(\d.*)$/);
1029
+ if (match && match[0]) return `v${match[0]}`;
1030
1030
  return branch;
1031
1031
  }
1032
1032
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quiteer/scripts",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "homepage": "https://quiteerjs.github.io/web/cli/scripts.html",
6
6
  "publishConfig": {
7
7
  "access": "public",