Skip to content

Commit 9b773fd

Browse files
committed
Fix RegExp serialization to properly escape quotes and backslashes
1 parent 41acc21 commit 9b773fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/configExporter/yamlSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class YamlSerializer {
6868
}
6969

7070
if (value instanceof RegExp) {
71-
return `"${value.toString()}"`
71+
return JSON.stringify(value.toString())
7272
}
7373

7474
if (Array.isArray(value)) {

0 commit comments

Comments
 (0)