We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4946922 commit eb7bc2fCopy full SHA for eb7bc2f
src/uu/expr/src/syntax_tree.rs
@@ -302,7 +302,7 @@ where
302
}
303
304
// Check if parsed quantifier is valid
305
- let re = Regex::new(r"^(\d*,\d*|\d+)$").expect("valid regular expression");
+ let re = Regex::new(r"^([0-9]*,[0-9]*|[0-9]+)$").expect("valid regular expression");
306
if let Some(captures) = re.captures(&quantifier) {
307
let matched = captures.at(0).unwrap_or_default();
308
match matched.split_once(',') {
0 commit comments