Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit b0f6186

Browse files
author
RayhanADev
committed
Realizing I can't .replaceAll() on Node smh
1 parent c8209ce commit b0f6186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function _getReplId(username, slug) {
1515
class Repl {
1616
constructor(username, slug) {
1717
this.username = username;
18-
this.slug = slug.replaceAll(' ', '-');
18+
this.slug = slug.replace(/ /g, '-');
1919
}
2020

2121
async replGraphQLData() {

0 commit comments

Comments
 (0)