|
|
@ -1,5 +1,5 @@
|
|
|
|
export function stringify(data: string) {
|
|
|
|
export function stringify(data: string) {
|
|
|
|
return JSON.stringify(data.replace(/([^\\@#])?([@#])/g, '$1\\$2'));
|
|
|
|
return JSON.stringify(escape(data));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function escape(data: string) {
|
|
|
|
export function escape(data: string) {
|
|
|
|