Bug 372874 - Clicking on URL with an @ in it opens mail app

r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only.


git-svn-id: svn://10.0.0.236/trunk@221688 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com
2007-03-10 08:21:21 +00:00
parent 03af764df7
commit 1ac5fb2c33

View File

@@ -96,7 +96,7 @@ function initMunger()
// This has a higher starting priority so as to get it to match before the
// normal link, which won't know about mailto and then fail.
munger.addRule(".mailto",
/(?:\s|\W|^)((mailto:)?[^<>\[\]()\'\"\s\u201d]+@[^.<>\[\]()\'\"\s\u201d]+\.[^<>\[\]()\'\"\s\u201d]+)/i,
/(?:\s|\W|^)((mailto:)?[^:;\\<>\[\]()\'\"\s\u201d]+@[^.<>\[\]()\'\"\s\u201d]+\.[^<>\[\]()\'\"\s\u201d]+)/i,
insertMailToLink, NORMAL_PRIORITY, HIGHER_PRIORITY, false);
munger.addRule("bugzilla-link",
/(?:\s|\W|^)(bug\s+(?:#?\d+|#[^\s,]{1,20}))/i,