Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikogs committed Oct 24, 2023
1 parent 89ca503 commit bb59bee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion replace-string/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: Replace string
description: |
Replaces string...
This action replaces a specified string using regular expression.
It can be passed as an input or read from a file.
Also, the output string can be additional written to file.
inputs:
string:
description: String to be replaced
Expand Down
2 changes: 1 addition & 1 deletion replace-string/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ try {
}

const regex = new RegExp(inReplaceRegex, inFlags);
strReplaced = string.replace(regex, inReplaceWith);
strReplaced = strToReplace.replace(regex, inReplaceWith);


// Output
Expand Down

0 comments on commit bb59bee

Please sign in to comment.