fix: update match regex (#669)
This commit is contained in:
parent
b52607dec9
commit
2edf47ec73
1 changed files with 2 additions and 1 deletions
|
|
@ -176,9 +176,10 @@ export function renderMixin(proto) {
|
||||||
dom.toggleClass(el, 'add', 'show')
|
dom.toggleClass(el, 'add', 'show')
|
||||||
|
|
||||||
let html = this.coverIsHTML ? text : this.compiler.cover(text)
|
let html = this.coverIsHTML ? text : this.compiler.cover(text)
|
||||||
|
|
||||||
const m = html
|
const m = html
|
||||||
.trim()
|
.trim()
|
||||||
.match('<p><img.*?data-origin="(.*?)"[^a]+alt="(.*?)">([^<]*?)</p>$')
|
.match('<img.*?data-origin="(.*?)"[^a]+alt="(.*?)">([^<]*?)$')
|
||||||
|
|
||||||
if (m) {
|
if (m) {
|
||||||
if (m[2] === 'color') {
|
if (m[2] === 'color') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue