Skip to content

Commit 55c44b7

Browse files
hudaruiphanan
authored andcommitted
Update render-function.md (#1887)
Unnecessary escape character: \-
1 parent 242dea4 commit 55c44b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/render-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Vue.component('anchored-heading', {
258258
var headingId = getChildrenTextContent(this.$slots.default)
259259
.toLowerCase()
260260
.replace(/\W+/g, '-')
261-
.replace(/(^\-|\-$)/g, '')
261+
.replace(/(^-|-$)/g, '')
262262

263263
return createElement(
264264
'h' + this.level,

0 commit comments

Comments
 (0)