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

Use fancy_regex instead of onig #4

Merged
merged 4 commits into from
Dec 9, 2019

Conversation

untitaker
Copy link
Contributor

This depends on fancy-regex/fancy-regex#38

We want this because we experienced multiple onig segfaults during our testing.

};

let model: Option<String> =
if let Some(model_replacement) = &self.model_replacement {
none_if_empty(replace(&model_replacement, &captures))
} else {
captures.at(3).map(str::to_string)
captures
.get(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This behavior was ported from the official Python implementation and is necessary for making the tests pass. I have read the "specification" document of uap-core and I have no idea what the intended behavior is or why this used to work before.

@oceanlewis
Copy link
Owner

Thanks for the PR! It's really appreciated!

@oceanlewis oceanlewis merged commit 2689129 into oceanlewis:master Dec 9, 2019
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