Skip to content

Commit

Permalink
Apply @WhyNotHugo's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo <[email protected]>
  • Loading branch information
AlexTMjugador and WhyNotHugo authored Jan 28, 2025
1 parent 21e4e41 commit 8858add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrule/src/parser/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub(crate) fn get_property_name(val: &str) -> Result<Option<PropertyName>, Parse

PARSE_PROPERTY_NAME_RE
.get_or_init(|| {
Regex::new(r"(?m)^([A-Z]+?)[:;]").expect("PARSE_PROPERTY_NAME_RE regex failed")
Regex::new(r"(?m)^([A-Z]+?)[:;]").expect("PARSE_PROPERTY_NAME_RE regex must compile")
})
.captures(val)
.and_then(|captures| captures.get(1))
Expand Down

0 comments on commit 8858add

Please sign in to comment.