Skip to content

Commit

Permalink
Remove type info in the JSDoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 13, 2023
1 parent 569e9a9 commit 102e985
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/components/src/utils/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?.() ?? '';
Expand All @@ -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, '\\$&' );
Expand Down

0 comments on commit 102e985

Please sign in to comment.