kuon/elm-string-normalize

String normalization utils


License
BSD-3-Clause
Install
elm-package install kuon/elm-string-normalize 1.0.6

Documentation

Elm String Normalize

CI

This package provides a few utilities to process user input into search token or filenames.

While this library will remove diacritics for easier string matching, it will NOT cleanup all unicode characters. This means that Homoglyph will be preserved.

Basic Usage

String.Normalize.filename "Crazy / User Input:soɱeṳser.jpg"

Will return:

"crazy-user-input-someuser.jpg"

Testing

make test