@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 500 B
Source Map (JSON)
{"version":3,"file":"strip-column-prefix.mjs","names":["constants"],"sources":["../../../../src/libs/collection/helpers/strip-column-prefix.ts"],"sourcesContent":["import constants from \"../../../constants/constants.js\";\n\n/**\n * Removes the prefix from a column name.\n */\nconst stripColumnPrefix = (name: string): string =>\n\tname.replace(constants.db.generatedColumnPrefix, \"\");\n\nexport default stripColumnPrefix;\n"],"mappings":"gDAKA,MAAM,EAAqB,GAC1B,EAAK,QAAQA,EAAU,GAAG,sBAAuB,EAAE"}