Merge pull request #4262 from cakebaker/pr_remove_comment

pr: remove commented out code line
This commit is contained in:
Sylvestre Ledru 2023-01-04 16:42:20 +01:00 committed by GitHub
commit ad542965ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -470,7 +470,6 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
fn recreate_arguments(args: &[String]) -> Vec<String> {
let column_page_option = Regex::new(r"^[-+]\d+.*").unwrap();
let num_regex = Regex::new(r"^[^-]\d*$").unwrap();
//let a_file: Regex = Regex::new(r"^[^-+].*").unwrap();
let n_regex = Regex::new(r"^-n\s*$").unwrap();
let mut arguments = args.to_owned();
let num_option = args.iter().find_position(|x| n_regex.is_match(x.trim()));