pathpida
Version:
TypeScript friendly pages and static path generator for Next.js
6 lines • 331 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.replaceWithUnderscore = void 0;
const replaceWithUnderscore = (name) => name.replace(/(-|\.|!| |'|\*|\(|\))/g, '_').replace(/^(\d)/, '$$$1');
exports.replaceWithUnderscore = replaceWithUnderscore;
//# sourceMappingURL=replaceWithUnderscore.js.map