Skip to content

Commit

Permalink
simplify regex
Browse files Browse the repository at this point in the history
Co-authored-by: Bart Smykla <[email protected]>
  • Loading branch information
kattouf and bartsmykla authored Dec 18, 2024
1 parent 3095f81 commit defd597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubi/src/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub(crate) fn linux_re() -> &'static Lazy<Regex> {
}

pub(crate) fn macos_re() -> &'static Lazy<Regex> {
regex!(r"(?i:(?:\b|_)(?:darwin|mac(?:os|osx)?|osx)(?:\b|_))")
regex!(r"(?i:(?:\b|_)(?:darwin|mac(?:osx?)?|osx)(?:\b|_))")
}

pub(crate) fn netbsd_re() -> &'static Lazy<Regex> {
Expand Down

0 comments on commit defd597

Please sign in to comment.