Skip to content

Commit

Permalink
fix(action): fix regex only matching single digit (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
baked-dev authored Aug 16, 2023
1 parent c57243c commit 93ecb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/action/out/212.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ function _templateObject1() {



var versionParserRegexp = /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*@(\d+\.\d+\.\d+(?:-canary\.\d)?)/;
var versionParserRegexp = /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*@(\d+\.\d+\.\d+(?:-canary\.\d+)?)/;
var checkPackage = function() {
var _ref = check_asyncToGenerator(function(pkg, rootVersion) {
var _ref, packageJson, log, _ref1, res, _ref2, currentVersion, _e, e;
Expand Down
2 changes: 1 addition & 1 deletion packages/action/src/check/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { gt } from 'semver';
import { getFolder, getJsonFile, JSONFile } from '../util/get-file';

const versionParserRegexp =
/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*@(\d+\.\d+\.\d+(?:-canary\.\d)?)/;
/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*@(\d+\.\d+\.\d+(?:-canary\.\d+)?)/;

const checkPackage = async (pkg: JSONFile, rootVersion: string) => {
try {
Expand Down

0 comments on commit 93ecb4c

Please sign in to comment.