Skip to content

Commit

Permalink
Escape matcherPath for GitHub add-matcher:
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Aug 3, 2023
1 parent 9d83f12 commit 35717e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const parse = (templatePath) => (matcherPath) => {

fs.writeFileSync(matcherPath, parsed);

console.log('::add-matcher::' + matcherPath);
console.log('::add-matcher::' + matcherPath.replaceAll('\\', '\\\\'));
}

// main:
Expand All @@ -42,4 +42,4 @@ try {

// for testing
exports.escapeRegExp = escapeRegExp
exports.variable = variable;
exports.variable = variable;

0 comments on commit 35717e0

Please sign in to comment.