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 daae935 commit 2a3b164
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions javascripts/NATO Spell.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ if (selection === undefined) {
var i, c, d, t;
for (i = 0; i < selection.length; i += 1) {
c = selection.charAt(i);
d = escape(c).replace(/%(..)/g, "&#x$1;");
d = encodeURIComponent(c);
if (d === c) {
d = h[c];
}
if (d == null) {
if (d === undefined) {
t = h[c.toUpperCase()];
if (t == null) {
d = "&#x" + c.codePointAt(0).toString(16).toUpperCase() + ";";
if (t === undefined) {
d = "%" + c.codePointAt(0).toString(16).toUpperCase();
} else {
d = t.toLowerCase();
d = t.toLowerCase();
}
}
result += d + ' ';
Expand Down

0 comments on commit 2a3b164

Please sign in to comment.