• Simon Lightfoot's avatar
    Changed IfCond to store the condition function and the compiled regular expression. · d48e51cb
    Simon Lightfoot authored
    Updated ifCondition test to deep test all fields.
    Changed NewComplexRule to not return a pointer.
    Corrected panic detection in formatting.
    Fixed failing test cases.
    Fixed review bug for test.
    Fixes bug caused by Replacer running on the regular expressions in IfMatcher. We also now compile regular expressions up front to detect errors.
    Fixes rewrite bugs that come from formatting a rule as a string and failing with nil dereference caused by embedding Regexp pointer in a Rule. Re: Issue #1794
    d48e51cb
condition.go 4.06 KB