mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix for 155236 by Vivian Kong
This commit is contained in:
parent
5524cec83b
commit
aca069a1db
1 changed files with 10 additions and 2 deletions
|
@ -85,7 +85,10 @@ public class PDOMSearchPatternQuery extends PDOMSearchQuery {
|
||||||
case '.':
|
case '.':
|
||||||
case ':':
|
case ':':
|
||||||
if (buff.length() > 0) {
|
if (buff.length() > 0) {
|
||||||
|
if (isCaseSensitive)
|
||||||
patternList.add(Pattern.compile(buff.toString()));
|
patternList.add(Pattern.compile(buff.toString()));
|
||||||
|
else
|
||||||
|
patternList.add(Pattern.compile(buff.toString(),Pattern.CASE_INSENSITIVE));
|
||||||
buff = new StringBuffer();
|
buff = new StringBuffer();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -95,7 +98,12 @@ public class PDOMSearchPatternQuery extends PDOMSearchQuery {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buff.length() > 0)
|
if (buff.length() > 0)
|
||||||
|
{
|
||||||
|
if (isCaseSensitive)
|
||||||
patternList.add(Pattern.compile(buff.toString()));
|
patternList.add(Pattern.compile(buff.toString()));
|
||||||
|
else
|
||||||
|
patternList.add(Pattern.compile(buff.toString(),Pattern.CASE_INSENSITIVE));
|
||||||
|
}
|
||||||
|
|
||||||
pattern = (Pattern[])patternList.toArray(new Pattern[patternList.size()]);
|
pattern = (Pattern[])patternList.toArray(new Pattern[patternList.size()]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue