From daae9354df43cd67b9f0347faf48a0e6d4a61c73 Mon Sep 17 00:00:00 2001 From: Thomas Leplus Date: Tue, 22 Oct 2024 17:34:39 +0530 Subject: [PATCH] Update NATO Spell.js --- javascripts/NATO Spell.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascripts/NATO Spell.js b/javascripts/NATO Spell.js index 52d60ef..981fc16 100644 --- a/javascripts/NATO Spell.js +++ b/javascripts/NATO Spell.js @@ -48,15 +48,15 @@ if (selection === undefined) { } else { selection = selection.trim(); var result = ''; - var i; + var i, c, d, t; for (i = 0; i < selection.length; i += 1) { - var c = selection.charAt(i); - var d = escape(c).replace(/%(..)/g, "&#x$1;"); + c = selection.charAt(i); + d = escape(c).replace(/%(..)/g, "&#x$1;"); if (d === c) { d = h[c]; } if (d == null) { - var t = h[c.toUpperCase()]; + t = h[c.toUpperCase()]; if (t == null) { d = "&#x" + c.codePointAt(0).toString(16).toUpperCase() + ";"; } else {