I don't understand why it is giving me false while the two strings are equal.
var str = 'https:\/\/monsite.com\/"onload="alert(1)"';
var patt = /https:\/\/monsite.com\/"onload="alert(1)"/i;
var result = patt.test(str);
document.write("Returned value: " + result);
I am a new beginner.
1.