Skip to content

Commit

Permalink
Update NATO Spell.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Oct 22, 2024
1 parent cc1c223 commit daae935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions javascripts/NATO Spell.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit daae935

Please sign in to comment.