Przeglądaj źródła

[collections] small change

Exilon 5 lat temu
rodzic
commit
1cb84287a0
1 zmienionych plików z 2 dodań i 3 usunięć
  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;