mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
bug 419207: Regular Expression matching is slow in Error Parser
Signed-off-by: Johann Draschwandtner <johann.draschwandtner@windriver.com>
This commit is contained in:
parent
410d532bde
commit
b36cb27a1e
1 changed files with 2 additions and 2 deletions
|
@ -277,9 +277,9 @@ public class RegexErrorPattern implements Cloneable {
|
|||
*/
|
||||
public boolean processLine(String line, ErrorParserManager eoParser) {
|
||||
Matcher matcher = getMatcher(line);
|
||||
// pattern should cover the whole line
|
||||
if (!(matcher.find() && matcher.group(0).length()==line.length()))
|
||||
if (!matcher.matches()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
recordError(matcher, eoParser);
|
||||
return eatProcessedLine;
|
||||
|
|
Loading…
Add table
Reference in a new issue