itizawa vor 6 Jahren
Ursprung
Commit
928cf0fdf8
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      src/lib/util/path-utils.js

+ 12 - 0
src/lib/util/path-utils.js

@@ -0,0 +1,12 @@
+
+const isTrashPage = (path) => {
+  if (path.match(/^\/trash(\/.*)?$/)) {
+    return true;
+  }
+
+  return false;
+};
+
+module.exports = {
+  isTrashPage,
+};