Browse Source

[collections] small change

Exilon 5 năm trước cách đây
mục cha
commit
1cb84287a0
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  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;