diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-14 03:41:11 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-14 03:41:11 -0400 |
commit | 48fcec82fa384ec260a02965f9f78c2e41256dd9 (patch) | |
tree | efe6bd570c210a5e7a3530bc11eccf7abb6ae67b /src/new_fields/RichTextField.ts | |
parent | dc766185075b5861686c68a704a8e49213eacbc6 (diff) |
clean up and regex improvement
Diffstat (limited to 'src/new_fields/RichTextField.ts')
-rw-r--r-- | src/new_fields/RichTextField.ts | 4 |
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 |