Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Aug 5, 2024
1 parent 830babb commit b5f3a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,11 @@ var Utilities = {
if(typeof(x) != "string") {
throw new Error("cleanDOI: argument must be a string");
}
// If it's a url, decode it
// If it's a URL, decode it
if (x.match(/^https?:/)) {
x = decodeURIComponent(x);
}
// Even if it's not a URL decode %3C followed by %3E as < >
// Even if it's not a URL, decode %3C followed by %3E as < >
var openingPos = x.indexOf("%3C");
if (openingPos != -1 && openingPos < x.indexOf("%3E")) {
x = x.replace(/%3C/g, "<");
Expand Down

0 comments on commit b5f3a1b

Please sign in to comment.