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
whole page freezes on infinite loop because some string gets wrongly trimmed using regex /\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/
changing it to /\/\*[\s\S]*?\*\/|([^\\:'"]|^)\/\/ fixes the problem
it seems it's trying to remove comments but here the double slash is not a comment
Steps to reproduce the problem.
have a HTML with ".selector { @font-face { font-family: font; src: url("//path/to/font.ttf") format("truetype"); } }
try to paste the text using html.set
whole browser freezes
Editor version.
4.2.1
OS.
MacOS
Browser.
Chrome / Safari
The text was updated successfully, but these errors were encountered:
Expected behavior.
text is inserted
Actual behavior.
whole page freezes on infinite loop because some string gets wrongly trimmed using regex
/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/
changing it to
/\/\*[\s\S]*?\*\/|([^\\:'"]|^)\/\/
fixes the problemit seems it's trying to remove comments but here the double slash is not a comment
Steps to reproduce the problem.
".selector { @font-face { font-family: font; src: url("//path/to/font.ttf") format("truetype"); } }
html.set
Editor version.
4.2.1
OS.
MacOS
Browser.
Chrome / Safari
The text was updated successfully, but these errors were encountered: