UNPKG

@wordpress/components

Version:
22 lines 696 B
export declare const normalizeTextString: (value: string) => string; /** * Converts any string to kebab case. * Backwards compatible with Lodash's `_.kebabCase()`. * Backwards compatible with `_wp_to_kebab_case()`. * * @see https://lodash.com/docs/4.17.15#kebabCase * @see https://developer.wordpress.org/reference/functions/_wp_to_kebab_case/ * * @param str String to convert. * @return Kebab-cased string */ export declare function kebabCase(str: unknown): string; /** * Escapes the RegExp special characters. * * @param string Input string. * * @return Regex-escaped string. */ export declare function escapeRegExp(string: string): string; //# sourceMappingURL=strings.d.ts.map