mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Build lib
This commit is contained in:
parent
c051125d0d
commit
b10aae15f1
2 changed files with 4 additions and 3 deletions
|
@ -4246,7 +4246,7 @@ proto.insertImage = function ( src, attributes ) {
|
|||
return img;
|
||||
};
|
||||
|
||||
var linkRegExp = /\b((?:(?:ht|f)tps?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,}\/)(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))|([\w\-.%+]+@(?:[\w\-]+\.)+[A-Z]{2,}\b)/i;
|
||||
var linkRegExp = /\b((?:(?:ht|f)tps?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,}\/)(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))|([\w\-.%+]+@(?:[\w\-]+\.)+[A-Z]{2,}\b)(?:(?:\?(?:(?!&|\?)(?:\S))+=(?:(?!&|\?)(?:\S))+)(?:&(?:(?!&|\?)(?:\S))+=(?:(?!&|\?)(?:\S))+)*)?/i;;
|
||||
|
||||
var addLinks = function ( frag, root, self ) {
|
||||
var doc = frag.ownerDocument,
|
||||
|
@ -4271,7 +4271,7 @@ var addLinks = function ( frag, root, self ) {
|
|||
/^(?:ht|f)tps?:/.test( match[1] ) ?
|
||||
match[1] :
|
||||
'http://' + match[1] :
|
||||
'mailto:' + match[2]
|
||||
'mailto:' + match[0]
|
||||
}, defaultAttributes, false ));
|
||||
child.textContent = data.slice( index, endIndex );
|
||||
parent.insertBefore( child, node );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue