diff --git a/packages/action/out/212.index.js b/packages/action/out/212.index.js index 702c9b3..1d27118 100644 --- a/packages/action/out/212.index.js +++ b/packages/action/out/212.index.js @@ -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; diff --git a/packages/action/src/check/index.ts b/packages/action/src/check/index.ts index 46d532b..df38ca8 100644 --- a/packages/action/src/check/index.ts +++ b/packages/action/src/check/index.ts @@ -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 {