Merge branch 'dev' of github.com:XPoet/hexo-theme-keep into dev
This commit is contained in:
commit
378d18c86f
|
@ -6,7 +6,7 @@ hexo.extend.filter.register(
|
||||||
if (!theme.lazyload || !theme.lazyload.enable) return;
|
if (!theme.lazyload || !theme.lazyload.enable) return;
|
||||||
data.content = data.content.replace(
|
data.content = data.content.replace(
|
||||||
// Match 'img' tags width the src attribute.
|
// Match 'img' tags width the src attribute.
|
||||||
/<img([^>]*)src="([^"]*)"([^>]*)>/gim,
|
/<img([^>]*)src="([^"]*)"([^>\/]*)\/?\s*>/gim,
|
||||||
function (match, attrBegin, src, attrEnd) {
|
function (match, attrBegin, src, attrEnd) {
|
||||||
// Exit if the src doesn't exists.
|
// Exit if the src doesn't exists.
|
||||||
if (!src) return match;
|
if (!src) return match;
|
||||||
|
|
Loading…
Reference in New Issue