Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Warn if loading remote content with nodeIntegration #10708
Oct 6, 2017
8 checks passed
My instinct tells me that it would be preferable to do multiple string comparisons instead of the regex - for performance reasons mostly, as parsing and matching the regex will be orders of magnitude slower. Also, the regex should match only the beginning of the string by having a ^ at the front.
@jeeftor The only way to make the warning go away is to follow it's advice, disable