Skip to content

Commit

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

0 comments on commit 9d74fe9

Please sign in to comment.