diff --git a/assets/js/components.js b/assets/js/components.js
index 847d819..29b6276 100644
--- a/assets/js/components.js
+++ b/assets/js/components.js
@@ -1,59 +1,4 @@
-var emoticons = {
- ">=-(": "๐ ",
- "=\")": "๐",
- "=-\")": "๐",
- "<\\3": "๐",
- "=-/": "๐",
- ":'(": "๐ข",
- ":'-(": "๐ข",
- ":,(": "๐ข",
- ":,-(": "cr๐ขy",
- "='(": "๐ข",
- "='-(": "๐ข",
- "=,(": "๐ข",
- "=,-(": "๐ข",
- "=-(": "๐ฆ",
- "โก": "heartโค๏ธ",
- "]=-(": "๐ฟ",
- "0=-)": "๐",
- ":')": "๐",
- ":'-)": "๐",
- ":,)": "๐",
- ":,-)": "๐",
- ":'D": "๐",
- ":'-D": "๐",
- ":,D": "๐",
- ":,-D": "๐",
- "=')": "๐",
- "='-)": "๐",
- "=,)": "๐",
- "=,-)": "๐",
- "='D": "๐",
- "='-D": "๐",
- "=-*": "๐",
- "X-)": "๐",
- "=-|": "๐",
- "=-O": "๐ฎ",
- "=-@": "๐ก",
- "=-D": "๐",
- ":)": "๐",
- ":-)": "๐",
- "=-)": "๐",
- "]=-)": "๐",
- ":,'(": "๐ญ",
- ":,'-(": "๐ญ",
- ";(": "๐ญ",
- ";-(": "๐ญ",
- "=,'(": "๐ญ",
- "=,'-(": "๐ญ",
- "=-P": "๐",
- "B-)": "๐",
- ",=-(": "๐",
- ",=-)": "๐
",
- "=-$": "๐",
- ";)": "๐",
- ";-)": "๐"
-}, emojis = {
+var emojis = {
"open_hands": "๐",
"open_hands_tone1": "๐๐ป",
"open_hands_tone2": "๐๐ผ",
diff --git a/assets/js/index.js b/assets/js/index.js
index 484fe86..c4dfea7 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -42,10 +42,7 @@ window.onload = () => {
if (opts.inlineBlock) txt = txt.replace(/\`([^\`]+?)\`|\`\`([^\`]+?)\`\`|\`\`\`((?:\n|.)+?)\`\`\`/g, (m, x, y, z) => x ? `${x}
` : y ? `${y}
` : z ? `${z}
` : m);
else txt = txt.replace(/\`\`\`(\w{1,15})?\n((?:\n|.)+?)\`\`\`|\`\`(.+?)\`\`(?!\`)|\`([^\`]+?)\`/g, (m, w, x, y, z) => w && x ? `
${x}
` : x ? `${x}
` : y || z ? `${y || z}
` : m);
if (opts.inEmbed) txt = txt.replace(/\[([^\[\]]+)\]\((.+?)\)/g, `$1`);
- if (opts.replaceEmojis) {
- txt = txt.replace(/(?[^>]+)(? x && emojis[x] ? emojis[x] : match);
- !opts.noEmoticons && Object.keys(emoticons).forEach(e => txt = txt.replace(new RegExp(`(?<=^|\\s)${regEscape(e)}(?=$|\\s)`, 'g'), emoticons[e]));
- }
+ if (opts.replaceEmojis) txt = txt.replace(/(?[^>]+)(? x && emojis[x] ? emojis[x] : match);
txt = txt
.replace(/(?<=\n|^)\s*>\s+([^\n]+)/g, '$1
https://
or http://
on this line ${makeShort(re[0], 30, 600)}`, true);
+ if (re) error(`URL should start with https://
or http://
on this line ${makeShort(re[0], 30, 600)}`, true);
else notif.animate({ opacity: '0', bottom: '-50px', offset: 1 }, { easing: 'ease', duration: 500 }).onfinish = () => notif.style.removeProperty('display');
twemoji.parse(msgEmbed);
}
diff --git a/assets/media/layout.png b/assets/media/layout.png
index 7b7c926..18446c0 100644
Binary files a/assets/media/layout.png and b/assets/media/layout.png differ
diff --git a/index.html b/index.html
index dc4c14e..2675946 100644
--- a/index.html
+++ b/index.html
@@ -32,10 +32,10 @@