Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/url_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const UrlUtils = {
// Allow IPv4 addresses
if (/^(\d{1,3}\.){3}\d{1,3}$/.test(hostName)) return true;

// Identify as URL if it ends with a '/' (we already checked it has no spaces)
if (str.endsWith("/")) return true;

// Fallback: no URL
return false;
},
Expand Down