From 0a51c351e1aced537587192333cde74def5c15d9 Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 28 Sep 2015 16:16:12 +0200 Subject: [PATCH] Backport of apostrophe handling from stoi.xyz --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 0294b3b..774ad90 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,11 @@ var s_hostname = punycode.toUnicode(location.host) var s_txt = s_hostname.replace("." + s_base_domain, s_replace); + var apostrophe = s_txt.match(/(l)\./); + if (apostrophe){ + s_txt = s_txt.replace(/\./, "'"); + } + s_txt = s_txt.replace(/\./g, " "); s_txt = s_txt.charAt(0).toUpperCase() + s_txt.slice(1);