Skip to content

Commit b3250a6

Browse files
vuejs-jp-botpotato4d
authored andcommitted
Update render-function.md (#1887) (#1324)
Unnecessary escape character: \-
1 parent 91b024a commit b3250a6

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
@@ -257,7 +257,7 @@ Vue.component('anchored-heading', {
257257
var headingId = getChildrenTextContent(this.$slots.default)
258258
.toLowerCase()
259259
.replace(/\W+/g, '-')
260-
.replace(/(^\-|\-$)/g, '')
260+
.replace(/(^-|-$)/g, '')
261261

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

0 commit comments

Comments
 (0)