diff options
Diffstat (limited to 'src/lib/util.ts')
| -rw-r--r-- | src/lib/util.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util.ts b/src/lib/util.ts new file mode 100644 index 0000000..9903e2c --- /dev/null +++ b/src/lib/util.ts @@ -0,0 +1,3 @@ +export function stripColourCodes(str: string): string { + return str.replace(/&[0-9a-fk-or]/i, ''); +}
\ No newline at end of file |
