summaryrefslogtreecommitdiff
path: root/src/lib/decoder.ts
diff options
context:
space:
mode:
authoraxtloss <axtlos@disroot.org>2024-12-24 19:25:48 +0100
committeraxtloss <axtlos@disroot.org>2024-12-24 20:04:59 +0100
commite46cb88d3763a64e97557b2db2f9b74ae7627555 (patch)
tree9c00ad1e59f4fdc36e050d9329eb7cfdeb0588d2 /src/lib/decoder.ts
parentc19fb8828e1dfdd4ce548269ff7cf08de96adf95 (diff)
downloadwebsite-e46cb88d3763a64e97557b2db2f9b74ae7627555.tar.gz
website-e46cb88d3763a64e97557b2db2f9b74ae7627555.tar.bz2
new website dropped
Diffstat (limited to '')
-rw-r--r--src/lib/decoder.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/decoder.ts b/src/lib/decoder.ts
deleted file mode 100644
index f28bbbc..0000000
--- a/src/lib/decoder.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-export function decode(value: string): string {
- var offset: number = parseInt(value.substring(0,2), 16);
- var final: string = "";
- for (let i = 2; i < value.length; i=i+3) {
- var num: string = value.substring(i, i+3);
- var charAscii: number = parseInt(num, 16)-offset;
- final = final + String.fromCharCode(charAscii)
- }
- return final;
-}
-
-
-export function isDecoded(value: string): boolean {
- var offset: number = Number(value.substring(0,2));
- return isNaN(offset);
-}