Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
c375299d3e
1 changed files with 10 additions and 6 deletions
|
@ -694,13 +694,17 @@ func assetsLinkDestsInTree(tree *parse.Tree) (ret []string) {
|
|||
} else { // HTMLBlock/InlineHTML/IFrame/Audio/Video
|
||||
if index := bytes.Index(n.Tokens, []byte("src=\"")); 0 < index {
|
||||
src := n.Tokens[index+len("src=\""):]
|
||||
src = src[:bytes.Index(src, []byte("\""))]
|
||||
if !isRelativePath(src) {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
if index = bytes.Index(src, []byte("\"")); 0 < index {
|
||||
src = src[:bytes.Index(src, []byte("\""))]
|
||||
if !isRelativePath(src) {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
dest := strings.TrimSpace(string(src))
|
||||
ret = append(ret, dest)
|
||||
dest := strings.TrimSpace(string(src))
|
||||
ret = append(ret, dest)
|
||||
} else {
|
||||
logging.LogWarnf("src is missing the closing double quote in tree [%s] ", tree.Box+tree.Path)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue