p5-analysis
Version:
API to find, create, and analyze p5.js sketch files.
12 lines (11 loc) • 375 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isScriptPathname = exports.isHtmlPathname = void 0;
function isHtmlPathname(pathname) {
return /\.html?/i.test(pathname);
}
exports.isHtmlPathname = isHtmlPathname;
function isScriptPathname(pathname) {
return /\.js$/i.test(pathname);
}
exports.isScriptPathname = isScriptPathname;
;