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
Line 161 in StreamReaderExtension.cs:
htmlContents = Regex.Replace(htmlContents, @"// (.*?)\r?\n", "", RegexOptions.Singleline);
This catches regex expressions in javascripts that have escaped forward slashes. For example:
url += $('#field').val().replace(///g, '').replace(/&/g, 'and').substring(0, 50) + '/';
the regex expression "///g" is valid, but not a comment.
Trying to think of a workaround for this line, but my regex is a little rusty.
I was thinking this:
htmlContents = Regex.Replace(htmlContents, @"[^\\]// (.*?)\r?\n", "", RegexOptions.Singleline);
But that also fails.
The text was updated successfully, but these errors were encountered:
Line 161 in StreamReaderExtension.cs:
htmlContents = Regex.Replace(htmlContents, @"// (.*?)\r?\n", "", RegexOptions.Singleline);
This catches regex expressions in javascripts that have escaped forward slashes. For example:
url += $('#field').val().replace(///g, '').replace(/&/g, 'and').substring(0, 50) + '/';
the regex expression "///g" is valid, but not a comment.
Trying to think of a workaround for this line, but my regex is a little rusty.
I was thinking this:
htmlContents = Regex.Replace(htmlContents, @"[^\\]// (.*?)\r?\n", "", RegexOptions.Singleline);
But that also fails.
The text was updated successfully, but these errors were encountered: