跳转到内容

componentRegistry/convert-hyphens

此内容尚不支持你的语言。

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.