From e04449bb9fa16d82f927c249a65b1fbf8a89c449 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Mon, 13 Jan 2025 22:21:24 -0800 Subject: [PATCH 1/2] update readme --- README.md | 12 ++++++------ "README.\344\270\255\346\226\207.md" | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 85ff190915..b799a53032 100644 --- a/README.md +++ b/README.md @@ -1791,13 +1791,13 @@ The process ID is: 420 [Replacement string syntax](https://docs.rs/regex/latest/regex/struct.Regex.html#replacement-string-syntax). - `trim(s)` - Remove leading and trailing whitespace from `s`. - `trim_end(s)` - Remove trailing whitespace from `s`. -- `trim_end_match(s, pat)` - Remove suffix of `s` matching `pat`. -- `trim_end_matches(s, pat)` - Repeatedly remove suffixes of `s` matching - `pat`. +- `trim_end_match(s, substr)` - Remove suffix of `s` matching `substr`. +- `trim_end_matches(s, substr)` - Repeatedly remove suffixes of `s` matching + `substr`. - `trim_start(s)` - Remove leading whitespace from `s`. -- `trim_start_match(s, pat)` - Remove prefix of `s` matching `pat`. -- `trim_start_matches(s, pat)` - Repeatedly remove prefixes of `s` matching - `pat`. +- `trim_start_match(s, substr)` - Remove prefix of `s` matching `substr`. +- `trim_start_matches(s, substr)` - Repeatedly remove prefixes of `s` matching + `substr`. #### Case Conversion diff --git "a/README.\344\270\255\346\226\207.md" "b/README.\344\270\255\346\226\207.md" index f586f78e22..fd004b5a86 100644 --- "a/README.\344\270\255\346\226\207.md" +++ "b/README.\344\270\255\346\226\207.md" @@ -1196,11 +1196,11 @@ The executable is at: /bin/just - `replace_regex(s, regex, replacement)` - 将 `s` 中所有的 `regex` 替换为 `replacement`。正则表达式由 [Rust `regex` 包](https://docs.rs/regex/latest/regex/) 提供。参见 [语法文档](https://docs.rs/regex/latest/regex/#syntax) 以了解使用示例。 - `trim(s)` - 去掉 `s` 的首尾空格。 - `trim_end(s)` - 去掉 `s` 的尾部空格。 -- `trim_end_match(s, pat)` - 删除与 `pat` 匹配的 `s` 的后缀。 -- `trim_end_matches(s, pat)` - 反复删除与 `pat` 匹配的 `s` 的后缀。 +- `trim_end_match(s, substr)` - 删除与 `substr` 匹配的 `s` 的后缀。 +- `trim_end_matches(s, substr)` - 反复删除与 `substr` 匹配的 `s` 的后缀。 - `trim_start(s)` - 去掉 `s` 的首部空格。 -- `trim_start_match(s, pat)` - 删除与 `pat` 匹配的 `s` 的前缀。 -- `trim_start_matches(s, pat)` - 反复删除与 `pat` 匹配的 `s` 的前缀。 +- `trim_start_match(s, substr)` - 删除与 `substr` 匹配的 `s` 的前缀。 +- `trim_start_matches(s, substr)` - 反复删除与 `substr` 匹配的 `s` 的前缀。 #### 大小写转换 From e9f501e1d8f4aed8b7bb7b2d6a28138ca893c586 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 14 Jan 2025 16:33:01 -0800 Subject: [PATCH 2/2] substr -> substring --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b799a53032..2094d19398 100644 --- a/README.md +++ b/README.md @@ -1791,13 +1791,13 @@ The process ID is: 420 [Replacement string syntax](https://docs.rs/regex/latest/regex/struct.Regex.html#replacement-string-syntax). - `trim(s)` - Remove leading and trailing whitespace from `s`. - `trim_end(s)` - Remove trailing whitespace from `s`. -- `trim_end_match(s, substr)` - Remove suffix of `s` matching `substr`. -- `trim_end_matches(s, substr)` - Repeatedly remove suffixes of `s` matching - `substr`. +- `trim_end_match(s, substring)` - Remove suffix of `s` matching `substring`. +- `trim_end_matches(s, substring)` - Repeatedly remove suffixes of `s` matching + `substring`. - `trim_start(s)` - Remove leading whitespace from `s`. -- `trim_start_match(s, substr)` - Remove prefix of `s` matching `substr`. -- `trim_start_matches(s, substr)` - Repeatedly remove prefixes of `s` matching - `substr`. +- `trim_start_match(s, substring)` - Remove prefix of `s` matching `substring`. +- `trim_start_matches(s, substring)` - Repeatedly remove prefixes of `s` + matching `substring`. #### Case Conversion