| Crates.io | wikidot-normalize |
| lib.rs | wikidot-normalize |
| version | 0.12.0 |
| created_at | 2019-09-30 03:20:41.065366+00 |
| updated_at | 2023-09-29 21:38:51.572718+00 |
| description | Simple library to provide Wikidot-compatible string normalization |
| homepage | |
| repository | https://github.com/scpwiki/wikidot-normalize |
| max_upload_size | |
| id | 168745 |
| size | 20,264 |
Simple library to provide Wikidot-compatible string normalization. It is a Rust port of the functionality in WDStringUtils::toUnixName.
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"This library is getting close to finalization with a v1.0.0 release.
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.68.2
$ cargo build --release
$ cargo test
Add -- --nocapture to the end if you want to see test output.