Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Sep 27, 2023
1 parent cb0f4a0 commit 6e322b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use tracing::warn;

/// A regex copied from <https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions>,
/// updated to support stars for version ranges
pub(crate) const VERSION_RE_INNER: &str = r#"
pub(crate) const VERSION_RE_INNER: &str = r"
(?:
(?:v?) # <https://peps.python.org/pep-0440/#preceding-v-character>
(?:(?P<epoch>[0-9]+)!)? # epoch
Expand Down Expand Up @@ -51,7 +51,7 @@ pub(crate) const VERSION_RE_INNER: &str = r#"
)
(?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))? # local version
(?P<trailing_dot_star>\.\*)? # allow for version matching `.*`
"#;
";

lazy_static! {
/// Matches a python version, such as `1.19.a1`. Based on the PEP 440 regex
Expand Down

0 comments on commit 6e322b5

Please sign in to comment.