diff --git a/dist/index.js b/dist/index.js index 530b19202..55ba2e42f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15,7 +15,7 @@ async function init () { const get = core.getInput const required = { required: true } const apiBase = 'https://api.postman.com' - const idRegex = /^[0-9]{7}-\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ + const idRegex = /^[0-9]{7,}-\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ const options = { apiKey: '?apikey=' + get('apiKey'), diff --git a/index.js b/index.js index 984c1f62e..9203f2a61 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ async function init () { const get = core.getInput const required = { required: true } const apiBase = 'https://api.postman.com' - const idRegex = /^[0-9]{7}-\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ + const idRegex = /^[0-9]{7,}-\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/ const options = { apiKey: '?apikey=' + get('apiKey'), diff --git a/package-lock.json b/package-lock.json index af3a06482..80853a3ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "0.2.3", + "version": "0.2.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c6cf12ae5..3a95d5c54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "0.2.3", + "version": "0.2.4", "description": "Run Postman collections with Newman as a GitHub Action", "main": "index.js", "scripts": {