Skip to content

Instantly share code, notes, and snippets.

@buithehoa
Last active August 23, 2021 14:18
Show Gist options
  • Save buithehoa/2c6134255239b8057c907b624697c9ff to your computer and use it in GitHub Desktop.
Save buithehoa/2c6134255239b8057c907b624697c9ff to your computer and use it in GitHub Desktop.
.sub('-', ' ').gsub(/[\:\[\]\"\'-.#]/, '').gsub(/[\/(\s)]+/, '-').downcase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment