componentRegistry/convert-hyphens
Esta página aún no está disponible en tu idioma.
Functions
Section titled “Functions”convertHyphensToUnderscores()
Section titled “convertHyphensToUnderscores()”function convertHyphensToUnderscores(str: string): string
Defined in: studiocms/packages/studiocms/src/componentRegistry/convert-hyphens.ts:7^
Converts all hyphens in a given string to underscores.
Parameters
Section titled “Parameters”string
The input string containing hyphens to be converted.
Returns
Section titled “Returns”string
A new string with all hyphens replaced by underscores.
convertUnderscoresToHyphens()
Section titled “convertUnderscoresToHyphens()”function convertUnderscoresToHyphens(str: string): string
Defined in: studiocms/packages/studiocms/src/componentRegistry/convert-hyphens.ts:18^
Converts all underscores in a given string to hyphens.
Parameters
Section titled “Parameters”string
The input string containing underscores to be converted.
Returns
Section titled “Returns”string
A new string with all underscores replaced by hyphens.