Skip to content

Commit

Permalink
Merge pull request #1268 from didi/fix_web_compile
Browse files Browse the repository at this point in the history
fix(web): fix refs regexp
  • Loading branch information
hiyuki authored Sep 20, 2023
2 parents 2796ad0 + 0f4d4d2 commit e5d8d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/platform/builtInMixins/refsMixin.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function getEl (ref) {

function processRefs (refs) {
Object.keys(refs).forEach((key) => {
const matched = /^__mpx_ref_([^_]+)__$/.exec(key)
const matched = /^__mpx_ref_(.+)__$/.exec(key)
const rKey = matched && matched[1]
if (rKey) {
const ref = refs[key]
Expand Down

0 comments on commit e5d8d42

Please sign in to comment.