Skip to content

Commit

Permalink
Add additional characters to specification fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Sep 12, 2024
1 parent 1136b5e commit bb62371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fix_specifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (result) {
}

// Fix 1: quote values
const step1 = new RegExp(/("values?":\s?"\{)([\w",:{}[\]]+)(\}"\s?},?)/g);
const step1 = new RegExp(/("values?":\s?"\{)([\w",:{}[\]\-℃%]+)(\}"\s?},?)/g);
spec = spec.replaceAll(step1, (_substring, group1: string, group2: string, group3: string) => {
return `${group1}${group2.replaceAll('"', '\\"')}${group3}`;
});
Expand Down

0 comments on commit bb62371

Please sign in to comment.