Skip to content

Commit

Permalink
Merge pull request #139 from SolaceLabs/fix-forward-slash-files
Browse files Browse the repository at this point in the history
fix issue with creating files wth forward slashes in name
  • Loading branch information
TamimiGitHub committed Jun 25, 2024
2 parents ae75332 + ecd84e8 commit f6dd2da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-parrots-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solace-labs/ep-async-api-importer": minor
---

Bug Fix: creating files with fwd slashes
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class CliUtils {

public static convertStringToFilePath(str: string): string {
//eslint-disable-next-line
return str.replaceAll(/[^0-9a-zA-Z\/\.]+/g, '-');
return str.replaceAll(/[^0-9a-zA-Z\\.]+/g, '-');
}

// public static readFileContentsAsJson = (filePath: string): any => {
Expand Down

0 comments on commit f6dd2da

Please sign in to comment.