diff --git a/doc/contributions.txt b/doc/contributions.txt index de917d4f185896620a3e31d660b7320d07d39998..b744f4db3e1444cfa2be53df3076077e12981d1e 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -759,8 +759,6 @@ SpacedOut Frye VWR-1823 Sporked Friis VWR-4903 -Squire Linden - CHOP-662 Stevex Janus VWR-1182 Still Defiant diff --git a/indra/llvfs/lldiriterator.cpp b/indra/llvfs/lldiriterator.cpp index 3b132862adaa4f292cf239a8dc1af7064ce892a8..25550321f0218f93a931e5d2448c4ceb057a9481 100644 --- a/indra/llvfs/lldiriterator.cpp +++ b/indra/llvfs/lldiriterator.cpp @@ -121,13 +121,13 @@ bool LLDirIterator::Impl::next(std::string &fname) return found; } -/* -converts the incoming glob into a regex. This involves +/** +Converts the incoming glob into a regex. This involves converting incoming glob expressions to regex equivilents and at the same time, escaping any regex meaningful characters which do not have glob meaning, i.e. .()+|^$ -in the input +in the input. */ std::string glob_to_regex(const std::string& glob) { @@ -176,15 +176,15 @@ std::string glob_to_regex(const std::string& glob) regex+= square_brace_open ? '^' : c; break; case '.': // This collection have different regex meaning - case '^': // And so need escaping + case '^': // and so need escaping. case '(': case ')': case '+': case '|': case '$': - regex+='\\'; - default: - regex+=c; + regex += '\\'; + default: + regex += c; break; }