You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the offending code (in /lib/rules/no-url-protocols.js):
varisUrlRegex=/^(http(s?)):\/\/|\/\//;
It reports data-urls which have two consecutive slashes in them. The regex should be changed to report urls that begin with http(s):// or //. There are a number of ways to clean up the regex. Here's my suggested, simplified regex: /^(https?:)?\/\//
The text was updated successfully, but these errors were encountered:
Here's the offending code (in
/lib/rules/no-url-protocols.js
):It reports data-urls which have two consecutive slashes in them. The regex should be changed to report urls that begin with
http(s)://
or//
. There are a number of ways to clean up the regex. Here's my suggested, simplified regex:/^(https?:)?\/\//
The text was updated successfully, but these errors were encountered: