Commits

squire_linden committed 39e80bb

CHOP-662 cleanup in response to code review.

Comments (0)

Files changed (2)

doc/contributions.txt

 	VWR-1823
 Sporked Friis
 	VWR-4903
-Squire Linden
-    CHOP-662
 Stevex Janus
 	VWR-1182
 Still Defiant

indra/llvfs/lldiriterator.cpp

 	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)
 {
 				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;
 		}