diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-13 16:38:16 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-13 16:38:16 +0800 |
| commit | eac47247875fe79960a1dfd714a8bb2f9a148e7d (patch) | |
| tree | 9c93966503b754ea4a3fc88c623ecf6c4cac178e | |
| parent | 6490775f28fe36228280ac57b3a5a9e1fed9d004 (diff) | |
Bump version to 0.1.2 and update docs for strip-ansi feature
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/fmt_path.rs | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -13,7 +13,7 @@ Add the dependency to your `Cargo.toml`: ```toml [dependencies] -just_fmt = "0.1.1" +just_fmt = "0.1.2" ``` ## License diff --git a/src/fmt_path.rs b/src/fmt_path.rs index d7c5fd3..e2c06a4 100644 --- a/src/fmt_path.rs +++ b/src/fmt_path.rs @@ -40,7 +40,8 @@ impl Default for PathFormatConfig { /// Normalize an input path string into a canonical, platform‑agnostic form. /// -/// This function removes ANSI escape sequences, unifies separators to `/`, +/// This function removes ANSI escape sequences (requires `strip-ansi` feature), +/// unifies separators to `/`, /// collapses duplicate slashes, strips unfriendly characters (`*`, `?`, `"`, `<`, `>`, `|`), /// resolves simple `..` components, and preserves a trailing slash when present. /// @@ -80,7 +81,8 @@ pub fn fmt_path_str(path: impl Into<String>) -> Result<String, PathFormatError> /// Normalize an input path string into a canonical, platform‑agnostic form. /// -/// This function removes ANSI escape sequences, unifies separators to `/`, +/// This function removes ANSI escape sequences (requires `strip-ansi` feature), +/// unifies separators to `/`, /// collapses duplicate slashes, strips unfriendly characters (`*`, `?`, `"`, `<`, `>`, `|`), /// resolves simple `..` components, and preserves a trailing slash when present. /// |
