浏览代码

[collections] small change

Exilon 5 年之前
父节点
当前提交
1cb84287a0
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Quick.Collections.pas

+ 2 - 3
Quick.Collections.pas

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