Simple library to provide Wikidot-compatible string normalization.
Wikidot normal form is used in the site's page names. Essentially it ensures the following:
_
, :
, a-z
, 0-9
, or -
are replaced with dashes.Examples:
Big Cheese Horace
-> big-cheese-horace
bottom--Text
-> bottom-text
Tufto's Proposal
-> tufto-s-proposal
-test-
-> test
Available under the terms of the MIT License. See LICENSE.md.
This library targets the latest stable Rust. At time of writing, that is 1.38.0
sh
$ cargo build --release
sh
$ cargo test
Add -- --nocapture
to the end if you want to see test output.