Skip to content

uucore/checksum: simplify determine_regex()#6500

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:uucore_checksum_simplify_determine_regex
Jun 27, 2024
Merged

uucore/checksum: simplify determine_regex()#6500
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:uucore_checksum_simplify_determine_regex

Conversation

@cakebaker
Copy link
Contributor

This PR simplifies the signature of the determine_regex function from:

fn determine_regex(filename: &OsStr, input_is_stdin: bool, lines: &[String]) -> UResult<(Regex, bool)>

to

fn determine_regex(lines: &[String]) -> Option<(Regex, bool)>

@sylvestre sylvestre merged commit 6a489f5 into uutils:main Jun 27, 2024
@sylvestre
Copy link
Contributor

nice, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants