Skip to content

Commit

Permalink
Update FanFictionParser.js
Browse files Browse the repository at this point in the history
Removed shortUri double-negate; code will run functionally equivalent.
  • Loading branch information
Kiradien authored Nov 23, 2023
1 parent 123e3e3 commit b0e754e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/js/parsers/FanFictionParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FanFictionParser extends Parser {
//Shortened URI is not always ideal solution; apparently related to caching on server.
let regex = /(https?:\/\/(?:www\.)?\w+\.\w+\/s\/\d+\/\d+)\/[a-z\-0-9]+/i
let shortUri = regex.exec(webPage.sourceUrl);
if (!!shortUri)
if (shortUri)
{
console.log(`Failed to load URI [${webPage.sourceUrl}] - Attempting alternative. [${shortUri[1]}]`);
//Await throttle timer again for second page fetch.
Expand Down

0 comments on commit b0e754e

Please sign in to comment.