Changeset 894
- Timestamp:
- 10/08/07 22:49:23 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
XinhaCore.js (modified) (1 diff)
-
modules/Gecko/Gecko.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r893 r894 457 457 * @type RegExp 458 458 */ 459 Xinha.RE_email = / [_a-z\d\-\.]{3,}@[_a-z\d\-]{2,}(\.[_a-z\d\-]{2,})+/i;459 Xinha.RE_email = /^[_a-z\d\-\.]{3,}@[_a-z\d\-]{2,}(\.[_a-z\d\-]{2,})+$/i; 460 460 /** Identifies URLs 461 461 * @type RegExp -
trunk/modules/Gecko/Gecko.js
r808 r894 167 167 if (RE_date.test(matchData)) 168 168 { 169 if (!RE_ip.test(matchData)) 169 break; //ray: disabling linking of IP numbers because of general bugginess (see Ticket #1085) 170 /*if (!RE_ip.test(matchData)) 170 171 { 171 172 break; 172 } 173 }*/ 173 174 } 174 175 var leftTextUrl = s.anchorNode; … … 255 256 256 257 var m = s.anchorNode.data.match(Xinha.RE_url); 257 if ( m && a.href.match(s.anchorNode.data.trim()) ) 258 259 if ( m && a.href.match(new RegExp( 'http(s)?://' + Xinha.escapeStringForRegExp( s.anchorNode.data.trim() ) ) ) ) 258 260 { 259 261 var txtNode = s.anchorNode; … … 261 263 { 262 264 // Sometimes m is undefined becase the url is not an url anymore (was www.url.com and become for example www.url) 265 // ray: shouldn't the link be un-linked then? 263 266 m = txtNode.data.match(Xinha.RE_url); 264 267 if(m)
