Skip to content

Commit

Permalink
fix: wrong quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahochsteger committed May 13, 2024
1 parent c306d1e commit b8584ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript-json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ export class JsonSchemaGenerator {
const {texts, types} = propertyType;
const pattern = [];
for (let i = 0; i < texts.length; i++) {
const text = texts[i].replace(/[\\^$.*+?()[\]{}|]/g, '\\$&');
const text = texts[i].replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
const type = types[i];

if (i === 0) {
Expand Down

0 comments on commit b8584ec

Please sign in to comment.