Skip to content

Instantly share code, notes, and snippets.

@kunigami
Last active June 18, 2018 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/4d51bdf8038efc7f4194fbd7a00ca6a3 to your computer and use it in GitHub Desktop.
Save kunigami/4d51bdf8038efc7f4194fbd7a00ca6a3 to your computer and use it in GitHub Desktop.
let normalize s = Js.String.(
toLowerCase s |>
trim |>
replaceByRe [%bs.re "/ /g"] "_"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment