Skip to content

Commit d7ec115

Browse files
committed
removed unnecessary escapes
1 parent 56c7feb commit d7ec115

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/modules/IDE/hooks/useWhatPage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-useless-escape */
21
import { useEffect, useState } from 'react';
32
import { useSelector } from 'react-redux';
43
import { useLocation } from 'react-router-dom';
@@ -15,7 +14,7 @@ const useWhatPage = () => {
1514
const [pageName, setPageName] = useState(projectName);
1615

1716
const myStuffPattern = new RegExp(
18-
`(\/${username}\/(sketches\/?$|collections|assets)\/?)`
17+
`(/${username}/(sketches/?$|collections|assets)/?)`
1918
);
2019

2120
useEffect(() => {

0 commit comments

Comments
 (0)