mirror of https://github.com/sveltejs/svelte
parent
2d39b25585
commit
815c17cbe7
@ -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