/*
* lib.rs
*
* wikidot-normalize - Library to provide Wikidot-compatible normalization.
* Copyright (c) 2019-2023 Emmie Maeda
*
* wikidot-normalize is available free of charge under the terms of the MIT
* License. You are free to redistribute and/or modify it under those
* terms. It is distributed in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY. See the LICENSE file for more details.
*
*/
//! A library to provide Wikidot-compatible string normalization.
//!
//! Wikidot ensures all names of pages subscribe to a particular pattern.
//! Essentially, only alphanumeric characters, and `:`, `-`, and `_` are permitted.
//!
//! * Any uppercase characters are case folded, and any characters outside
//! the above set are collapsed into dashes. Multiple dashes or forward slashes are compressed
//! into a single instance.
//! * Any trailing forward slashes are stripped.
//! * Finally, any leading, trailing, or multiple dashes are removed.
extern crate str_macro;
pub use normalize;