diff --git a/dev/src/uu_tr/operation.rs.html b/dev/src/uu_tr/operation.rs.html index 662420a4a..ae2878096 100644 --- a/dev/src/uu_tr/operation.rs.html +++ b/dev/src/uu_tr/operation.rs.html @@ -547,6 +547,12 @@ 545 546 547 +548 +549 +550 +551 +552 +553
// * This file is part of the uutils coreutils package.
// *
// * For the full copyright and license information, please view the LICENSE
@@ -826,15 +832,21 @@
separated_pair(Self::parse_backslash_or_char, tag("*"), digit1),
tag("]"),
)(input)
- .map(|(l, (c, str))| {
- (
- l,
- match usize::from_str_radix(str, 8) {
+ .map(|(l, (c, cnt_str))| {
+ let result = if cnt_str.starts_with('0') {
+ match usize::from_str_radix(cnt_str, 8) {
Ok(0) => Ok(Self::CharStar(c)),
Ok(count) => Ok(Self::CharRepeat(c, count)),
- Err(_) => Err(BadSequence::InvalidRepeatCount(str.to_string())),
- },
- )
+ Err(_) => Err(BadSequence::InvalidRepeatCount(cnt_str.to_string())),
+ }
+ } else {
+ match cnt_str.parse::<usize>() {
+ Ok(0) => Ok(Self::CharStar(c)),
+ Ok(count) => Ok(Self::CharRepeat(c, count)),
+ Err(_) => Err(BadSequence::InvalidRepeatCount(cnt_str.to_string())),
+ }
+ };
+ (l, result)
})
}
diff --git a/dev/src/uudoc/uudoc.rs.html b/dev/src/uudoc/uudoc.rs.html
index 4a26180cf..b7829a858 100644
--- a/dev/src/uudoc/uudoc.rs.html
+++ b/dev/src/uudoc/uudoc.rs.html
@@ -417,7 +417,7 @@
writeln!(
w,
"<dd>\n\n{}\n\n</dd>",
- arg.get_help().unwrap_or_default().replace("\n", "<br />")
+ arg.get_help().unwrap_or_default().replace('\n', "<br />")
)?;
}
writeln!(w, "</dl>\n")