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 'src/lib/#decoder.ts#')
-rw-r--r--src/lib/#decoder.ts#17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/lib/#decoder.ts# b/src/lib/#decoder.ts#
deleted file mode 100644
index 3e5613f..0000000
--- a/src/lib/#decoder.ts#
+++ /dev/null
@@ -1,17 +0,0 @@
-export function decode(value: string): string {
- var offset: number = parseInt(value.substring(0,2), 16);
- var n: number = 2;
- var final: string = "";
- for (inti ; n < value.length; n=n+3) {
- var num: string = value.substring(n, n+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);
-}