@orval/core 7.19.0 → 7.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -917,11 +917,13 @@ const escape = (str, char = "'") => str?.replace(char, `\\${char}`);
917
917
  *
918
918
  * @param input String to escape
919
919
  */
920
- const jsStringEscape = (input) => input.replaceAll(/["'\\\n\r\u2028\u2029]/g, (character) => {
920
+ const jsStringEscape = (input) => input.replaceAll(/["'\\\n\r\u2028\u2029/*]/g, (character) => {
921
921
  switch (character) {
922
922
  case "\"":
923
923
  case "'":
924
- case "\\": return "\\" + character;
924
+ case "\\":
925
+ case "/":
926
+ case "*": return "\\" + character;
925
927
  case "\n": return String.raw`\n`;
926
928
  case "\r": return String.raw`\r`;
927
929
  case "\u2028": return String.raw`\u2028`;