Browse Source

[collections] small change

Exilon 5 years ago
parent
commit
1cb84287a0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Quick.Collections.pas

+ 2 - 3
Quick.Collections.pas

@@ -230,10 +230,9 @@ begin
   fList.AddRange(Collection);
 end;
 
-function TXList<T>.Any(const aMatchString: string;
-  aUseRegEx: Boolean): Boolean;
+function TXList<T>.Any(const aMatchString: string; aUseRegEx: Boolean): Boolean;
 begin
-
+  Result := Where(aMatchString,aUseRegEx).Any;
 end;
 
 function TXList<T>.Any: Boolean;