From 102e9851b1610a60c1b6b8b5944c511b68b8cd85 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 13 Dec 2023 11:22:14 +0900 Subject: [PATCH] Remove type info in the JSDoc comment --- packages/components/src/utils/strings.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/utils/strings.ts b/packages/components/src/utils/strings.ts index a1d192942a394..bb43a5e53a405 100644 --- a/packages/components/src/utils/strings.ts +++ b/packages/components/src/utils/strings.ts @@ -80,8 +80,8 @@ export const normalizeTextString = ( value: string ): string => { * @see https://lodash.com/docs/4.17.15#kebabCase * @see https://developer.wordpress.org/reference/functions/_wp_to_kebab_case/ * - * @param {string} str String to convert. - * @return {string} Kebab-cased string + * @param str String to convert. + * @return Kebab-cased string */ export function kebabCase( str: unknown ) { let input = str?.toString?.() ?? ''; @@ -102,9 +102,9 @@ export function kebabCase( str: unknown ) { /** * Escapes the RegExp special characters. * - * @param {string} string Input string. + * @param string Input string. * - * @return {string} Regex-escaped string. + * @return Regex-escaped string. */ export function escapeRegExp( string: string ): string { return string.replace( /[\\^$.*+?()[\]{}|]/g, '\\$&' );