Skip to content

Commit 801a51c

Browse files
committed
Update method signature
1 parent e55f94d commit 801a51c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ function githubLinks (options) {
185185
const file = files[path]
186186
const url = `https://github.com/nodejs/nodejs.org/edit/master/locale/${options.locale}/${path.replace('.html', '.md')}`
187187

188-
const contents = file.contents.toString().replace(/<h1(.*?)>(.*?)<\/h1>/, ($1, $2, $3) => {
189-
return `<a class="edit-link" href="${url}">Edit on GitHub</a> <h1>${$3}</h1>`
188+
const contents = file.contents.toString().replace(/<h1(.*?)>(.*?)<\/h1>/, (match, $1, $2) => {
189+
return `<a class="edit-link" href="${url}">Edit on GitHub</a> <h1${$1}>${$2}</h1>`
190190
})
191191

192192
file.contents = Buffer.from(contents)

0 commit comments

Comments
 (0)