Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/projection/isSubpath.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/projection/isSubpath.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/projection/isSubpath.js
-
curl -L -o isSubpath.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/projection/isSubpath.js
289 Bytes
| ; | |
| /** | |
| * Determines if `path2` is a subpath of or equal to `path1` | |
| * | |
| * @param {string} path1 | |
| * @param {string} path2 | |
| * @return {Boolean} | |
| * @api private | |
| */ | |
| module.exports = function isSubpath(path1, path2) { | |
| return path1 === path2 || path2.startsWith(path1 + '.'); | |
| }; | |