File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const { isExternalLink } = require ( 'hexo-util' ) ;
4
4
let EXTERNAL_LINK_POST_ENABLED = true ;
5
- const rATag = / < a (?: \s + ?| \s + ?[ ^ < > ] + \s + ?) ? h r e f = [ " ' ] ( (?: \/ \/ | h t t p (?: s ) ? : ) [ ^ < > " ' ] + ) [ " ' ] [ ^ < > ] * > / gi;
5
+ const rATag = / < a (?: \s + ?| \s + ?[ ^ < > ] + \s + ?) ? h r e f = [ " ' ] ( (?: h t t p (?: s ) ? : | \/ \/ ) [ ^ < > " ' ] + ) [ " ' ] [ ^ < > ] * > / gi;
6
6
const rTargetAttr = / t a r g e t = / i;
7
7
const rRelAttr = / r e l = / i;
8
8
const rRelStrAttr = / r e l = [ " ' ] ( [ ^ < > " ' ] * ) [ " ' ] / i;
Original file line number Diff line number Diff line change 3
3
const { isExternalLink } = require ( 'hexo-util' ) ;
4
4
5
5
let EXTERNAL_LINK_SITE_ENABLED = true ;
6
- const rATag = / < a (?: \s + ?| \s + ?[ ^ < > ] + \s + ?) ? h r e f = [ " ' ] ( (?: \/ \/ | h t t p (?: s ) ? : ) [ ^ < > " ' ] + ) [ " ' ] [ ^ < > ] * > / gi;
6
+ const rATag = / < a (?: \s + ?| \s + ?[ ^ < > ] + \s + ?) ? h r e f = [ " ' ] ( (?: h t t p (?: s ) ? : | \/ \/ ) [ ^ < > " ' ] + ) [ " ' ] [ ^ < > ] * > / gi;
7
7
const rTargetAttr = / t a r g e t = / i;
8
8
const rRelAttr = / r e l = / i;
9
9
const rRelStrAttr = / r e l = [ " ' ] ( [ ^ < > " ' ] * ) [ " ' ] / i;
You can’t perform that action at this time.
0 commit comments