You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method kebabcase from lodash replace the char . with -
We can replace the kebabcase method with this :
removeNonAsciiChar(transform(text.toString())).toLowerCase().replace(/\s+/g,'-')// Replace spaces with -.replace(/&/g,'-and-')// Replace & with 'and'.replace(/[^\w\-\.]+/g,'')// Remove all non-word chars.replace(/\--+/g,'-')// Replace multiple - with single -.replace(/^-+/,'')// Trim - from start of text.replace(/-+$/,'')// Trim - from end of text
The method kebabcase from lodash replace the char
.
with-
We can replace the kebabcase method with this :
What do you think ?
@atinux @benjamincanac
The text was updated successfully, but these errors were encountered: