Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Improved parser for issue numbers #160

Merged
merged 4 commits into from
Dec 23, 2024
Merged

perf: Improved parser for issue numbers #160

merged 4 commits into from
Dec 23, 2024

Conversation

m1sk9
Copy link
Member

@m1sk9 m1sk9 commented Dec 23, 2024

#152 で指摘のあった部分を修正

Copy link
Member

@KisaragiEffective KisaragiEffective left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

@m1sk9 m1sk9 enabled auto-merge (squash) December 23, 2024 04:49
Ok(regex) => regex,
Err(why) => return Err(ParseEnvIDsError::FailedToParseIssueNumber(why.to_string())),
};
let re = std::cell::LazyCell::new(|| regex::Regex::new(r"#(\d+)").unwrap());

match re.captures(title) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ついでにこれもlet-elseのほうが良さそう

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あとでやっとく

@m1sk9 m1sk9 merged commit 2e2d083 into main Dec 23, 2024
1 check passed
@m1sk9 m1sk9 deleted the improve-logic branch December 23, 2024 05:07
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