|
@@ -5,6 +5,7 @@
|
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
|
*/
|
|
*/
|
|
|
const isTrashPage = (path) => {
|
|
const isTrashPage = (path) => {
|
|
|
|
|
+ // https://regex101.com/r/BSDdRr/1
|
|
|
if (path.match(/^\/trash(\/.*)?$/)) {
|
|
if (path.match(/^\/trash(\/.*)?$/)) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
@@ -18,6 +19,7 @@ const isTrashPage = (path) => {
|
|
|
* @returns {boolean}
|
|
* @returns {boolean}
|
|
|
*/
|
|
*/
|
|
|
const isUserPage = (path) => {
|
|
const isUserPage = (path) => {
|
|
|
|
|
+ // https://regex101.com/r/SxPejV/1
|
|
|
if (path.match(/^\/user(\/.*)?$/)) {
|
|
if (path.match(/^\/user(\/.*)?$/)) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|