aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/RichTextField.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/new_fields/RichTextField.ts')
-rw-r--r--src/new_fields/RichTextField.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/RichTextField.ts b/src/new_fields/RichTextField.ts
index 3e8803a34..4f782816c 100644
--- a/src/new_fields/RichTextField.ts
+++ b/src/new_fields/RichTextField.ts
@@ -9,7 +9,7 @@ import { scriptingGlobal } from "../client/util/Scripting";
export class RichTextField extends ObjectField {
@serializable(true)
readonly Data: string;
- private Extractor = /,\"text\":\"([^\"\}]*)\"\}/g;
+ private Extractor = /,\"text\":\"([^\}]*)\"\}/g;
constructor(data: string) {
super();
@@ -33,6 +33,6 @@ export class RichTextField extends ObjectField {
considering = considering.substring(matches.index + matches[0].length);
this.Extractor.lastIndex = 0;
}
- return contents;
+ return contents.ReplaceAll("\\", "");
}
} \ No newline at end of file