UNPKG

pathpida

Version:

TypeScript friendly pages and static path generator for Next.js

6 lines 331 B
"use strict"; 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