Skip to content

Instantly share code, notes, and snippets.

@kunigami
Last active June 18, 2018 04:25
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/615d7a5614dc59c75c256537650f62d3 to your computer and use it in GitHub Desktop.
Save kunigami/615d7a5614dc59c75c256537650f62d3 to your computer and use it in GitHub Desktop.
let normalize s =
Js.String.toLowerCase s |>
Js.String.trim |>
Js.String.replaceByRe [%bs.re "/ /g"] "_"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment