Skip to content

Commit

Permalink
Add more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mikogs committed Oct 31, 2023
1 parent 9d74fe9 commit 6494fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions validate-inputs/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30151,9 +30151,9 @@ try {
invalidNames = [];
for (i=0; i<inNamesArr.length; i++) {
const inputValue = core.getInput(inNamesArr[i]);
const regex = new RegExp(inRegexpsArr[i], 'g')
const regex = new RegExp(inRegexpsArr[i], '')
if (!regex.test(inputValue)) {
console.log('Input '+inNamesArr[i]+' value does not match regular expression of '+inRegexpsArr[i])
console.log('Input '+inNamesArr[i]+' value '+inputValue+' does not match regular expression of '+inRegexpsArr[i])
invalidNames.push(inNamesArr[i]);
}
}
Expand Down
4 changes: 2 additions & 2 deletions validate-inputs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ try {
invalidNames = [];
for (i=0; i<inNamesArr.length; i++) {
const inputValue = core.getInput(inNamesArr[i]);
const regex = new RegExp(inRegexpsArr[i], 'g')
const regex = new RegExp(inRegexpsArr[i], '')
if (!regex.test(inputValue)) {
console.log('Input '+inNamesArr[i]+' value does not match regular expression of '+inRegexpsArr[i])
console.log('Input '+inNamesArr[i]+' value '+inputValue+' does not match regular expression of '+inRegexpsArr[i])
invalidNames.push(inNamesArr[i]);
}
}
Expand Down

0 comments on commit 6494fec

Please sign in to comment.