Explorar el Código

add path-utils

itizawa hace 6 años
padre
commit
928cf0fdf8
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  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,
+};