forked from OSchip/llvm-project
parent
19e3889dba
commit
c7a6b40d10
|
@ -130,7 +130,7 @@ static bool ConsumeNegativeIndicator(StringRef &GlobList) {
|
|||
// Converts first glob from the comma-separated list of globs to Regex and
|
||||
// removes it and the trailing comma from the GlobList.
|
||||
static llvm::Regex ConsumeGlob(StringRef &GlobList) {
|
||||
StringRef Glob = GlobList.substr(0, GlobList.find(','));
|
||||
StringRef Glob = GlobList.substr(0, GlobList.find(',')).trim();
|
||||
GlobList = GlobList.substr(Glob.size() + 1);
|
||||
llvm::SmallString<128> RegexText("^");
|
||||
StringRef MetaChars("()^$|*+?.[]\\{}");
|
||||
|
|
Loading…
Reference in New Issue