Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16632


Ignore:
Timestamp:
02/28/19 17:18:35 (6 years ago)
Author:
gkronber
Message:

#2971: fixed a small problem (trailing \r) in the parser for constraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs

    r16628 r16632  
    2222            if (match.Success) {
    2323              intervalConstraint.NumberOfDerivation = match.Groups[2].Success ? ParseDerivationCount(match.Groups[2].Value) : 1;
    24               intervalConstraint.Definition = match.Groups[3].Value.Trim(' ', '\t', '\n', '\r');
     24              intervalConstraint.Definition = match.Groups[3].Value;
    2525              intervalConstraint.IsDerivation = true;
    2626              var formulation = Regex.Match(splitted[1], @"([d∂])(.*[^²³])([²³])?");
     
    3232            }
    3333          } else {
    34             intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value.Trim(' ','\t','\n','\r');
     34            intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value;
    3535            intervalConstraint.IsDerivation = false;
    3636          }
    37           intervalConstraint.Expression = matches[i].Groups[0].Value;
     37          intervalConstraint.Expression = matches[i].Groups[0].Value.Trim(' ', '\t', '\n', '\r');
    3838          intervalConstraint.InclusiveLowerBound = (matches[i].Groups[2].Value == "[");
    3939          intervalConstraint.InclusiveUpperBound = (matches[i].Groups[6].Value == "]");
Note: See TracChangeset for help on using the changeset viewer.