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

Fixes #17075: translation into rudder-lang doesn't handle any class #2876

Conversation

peckpeck
Copy link
Member

@peckpeck peckpeck commented Apr 7, 2020

@peckpeck peckpeck requested a review from amousset April 7, 2020 16:31
@peckpeck
Copy link
Member Author

peckpeck commented Apr 7, 2020

It also contains a litte rewrite to always have a translation context and some bugfix in oslib

fn translate_condition(&self, expr: &str) -> Result<String> {
lazy_static! {
static ref CLASS_RE: Regex = Regex::new(r"([\w${}.]+)").unwrap();
static ref ANY_RE: Regex = Regex::new(r"(any\.)").unwrap();
Copy link
Member Author

Choose a reason for hiding this comment

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

The interesting part is this, and the replace below

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 47e674d into Normation:master Apr 14, 2020
@peckpeck peckpeck deleted the bug_17075/translation_into_rudder_lang_doesn_t_handle_any_class branch July 13, 2020 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants