Skip to content

Commit

Permalink
fix: holy regex batman
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ authored Apr 8, 2020
1 parent d9b7b79 commit 3ec95e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const generateTypes = async (s) => {
const transpiler = new JsonSchemaToTypes(parsed);
const ts = transpiler.toTs();

const escapedS = JSON.stringify(s).replace(/"/, "\\"", "g");
const escapedS = JSON.stringify(s).replace(/"/g, "\\\"");
const go = [
"package meta_schema",
"",
Expand Down

0 comments on commit 3ec95e8

Please sign in to comment.