Saltearse al contenido

componentRegistry/convert-hyphens

Esta página aún no está disponible en tu idioma.

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.

string

The input string containing hyphens to be converted.

string

A new string with all hyphens replaced by underscores.


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.

string

The input string containing underscores to be converted.

string

A new string with all underscores replaced by hyphens.