Skip to content

Commit a9b5f64

Browse files
committed
fix: replace string method substr with slice
1 parent 452c59b commit a9b5f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableImages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function expandableImages() {
3030
link.children = [
3131
{
3232
type: "text",
33-
value: link.alt.substr(0, -1 * "expandable".length).trim()
33+
value: link.alt.slice(0, -1 * "expandable".length).trim()
3434
}
3535
];
3636
}

0 commit comments

Comments
 (0)