From 277e2f6c7549b60835218a2d138ea465371cbd48 Mon Sep 17 00:00:00 2001 From: Toni Kaija Date: Fri, 2 Oct 2015 22:27:26 +0300 Subject: [PATCH] Manglement needs some love, too Why not both! --- Source/content_script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/content_script.js b/Source/content_script.js index a34d9d18..7268a14d 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -47,6 +47,14 @@ function handleText(textNode) { b = String.fromCharCode(p2.charCodeAt(0) - 1); return b + "utt"; }); + + // Deal with management + v = v.replace(/\b(M|m)anage/g, function(match, p1, offset, string) { + // c - 1 = b + b = String.fromCharCode(p1.charCodeAt(0)); + return b + "angle"; + }); + // Get the corner cases if(v.match(/cloud/i)) { // If we're not talking about weather