mirror of
https://github.com/fastmail/Squire.git
synced 2025-03-11 15:11:23 -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;
|
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 addLinks = function ( frag, root, self ) {
|
||||||
var doc = frag.ownerDocument,
|
var doc = frag.ownerDocument,
|
||||||
|
@ -4271,7 +4271,7 @@ var addLinks = function ( frag, root, self ) {
|
||||||
/^(?:ht|f)tps?:/.test( match[1] ) ?
|
/^(?:ht|f)tps?:/.test( match[1] ) ?
|
||||||
match[1] :
|
match[1] :
|
||||||
'http://' + match[1] :
|
'http://' + match[1] :
|
||||||
'mailto:' + match[2]
|
'mailto:' + match[0]
|
||||||
}, defaultAttributes, false ));
|
}, defaultAttributes, false ));
|
||||||
child.textContent = data.slice( index, endIndex );
|
child.textContent = data.slice( index, endIndex );
|
||||||
parent.insertBefore( child, node );
|
parent.insertBefore( child, node );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue