Add forgotten isUnderPrefix implementation

feature/node-rewrite
Sven Slootweg 5 years ago
parent b9e2515dd3
commit 385d526b0f

@ -0,0 +1,6 @@
"use strict";
module.exports = function isUnderPrefix(prefix, path) {
/* TODO: Does this need to be improved via 'proper' path segment parsing? */
return (path.indexOf(prefix) === 0);
};
Loading…
Cancel
Save