I want to redirect certain facebook urls. So far I have a working chrome plugin, but some urls are not matched the right way.
var patternURL = new RegExp("http(s)?://www\.facebook\.com(/|/@?ref=(tn_tnmn|logo)+)?$", "m");
Should match:
https://www.facebook.com/?ref=tn_tnmn
https://www.facebook.com/?ref=logo
https://www.facebook.com/
https://www.facebook.com
But not:
It seams in JavaScript the end of string ($) is not recognized correctly. Thats what my jsfiddle demo shows so far. It should be True but is always false even with "m".
What do I do wrong?
*)?@in/@?