Skip to content

Commit

Permalink
chore(compiler-sfc): replace substr with slice (#12564)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jul 4, 2022
1 parent ff2d52f commit 6f0d2e6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ function transform(
}

const imageCandidates: ImageCandidate[] = value
.substr(1, value.length - 2)
.slice(1, -1)
.split(',')
.map(s => {
// The attribute value arrives here with all whitespace, except
Expand Down

0 comments on commit 6f0d2e6

Please sign in to comment.