We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
substr
slice
1 parent ff2d52f commit 6f0d2e6Copy full SHA for 6f0d2e6
packages/compiler-sfc/src/templateCompilerModules/srcset.ts
@@ -38,7 +38,7 @@ function transform(
38
}
39
40
const imageCandidates: ImageCandidate[] = value
41
- .substr(1, value.length - 2)
+ .slice(1, -1)
42
.split(',')
43
.map(s => {
44
// The attribute value arrives here with all whitespace, except
0 commit comments