diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-02-15 14:01:30 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-02-15 14:01:30 +0000 |
| commit | 2aca4247c5d0c7061a300517178dd31316b65fab (patch) | |
| tree | 10e145c2b57d76c778bdf1a11191495dcfe191f3 /src/lib/util.ts | |
Initial commit
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 |
