mirror of https://github.com/sveltejs/svelte
parent
b4f2111f70
commit
265c99e054
@ -1,3 +1,3 @@
|
||||
export default function stringify(data: string) {
|
||||
return JSON.stringify(data.replace(/([^\\])?([@#])/g, '$1\\$2'));
|
||||
return JSON.stringify(data.replace(/([^\\@#])?([@#])/g, '$1\\$2'));
|
||||
}
|
||||
|
Loading…
Reference in new issue