Skip to content

Commit

Permalink
Use replace instead of replaceAll
Browse files Browse the repository at this point in the history
replace will work on older browsers
  • Loading branch information
wdalmut authored Oct 8, 2020
1 parent a14762d commit c683d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
plugins: [
function (hook) {
hook.afterEach(function (html, next) {
ghVersion.then((version) => next(html.replaceAll('GITHUB_VERSION', version)))
ghVersion.then((version) => next(html.replace(/GITHUB_VERSION/g, version)))
})
}
]
Expand Down

0 comments on commit c683d7d

Please sign in to comment.