6ff6503 Remove incorrect assumption from Matches.
src/Regex.cfc | 4 ----
src/legacy/Regex.cfc | 4 ----
2 files changed, 8 deletions(-)
diff --git a/src/Regex.cfc b/src/Regex.cfc
index 5bd47fa..4629fd9 100644
--- a/src/Regex.cfc
+++ b/src/Regex.cfc
@@ -377,10 +377,6 @@
<cfif StructKeyExists(Arguments,'ReturnType')>
<cfset Arguments.ReturnType = LCase(Arguments.ReturnType) />
- <!--- INFO: If no unnamed args, don't waste time checking for them. --->
- <cfelseif StructCount(arguments) EQ 2>
- <cfset Arguments.ReturnType = 'exact' />
-
<cfelse>
<cfif StructKeyExists(Arguments,'Exact') AND Arguments.Exact >
<cfset Arguments.ReturnType = "exact" />
diff --git a/src/legacy/Regex.cfc b/src/legacy/Regex.cfc
index 95ff258..193b79b 100644
--- a/src/legacy/Regex.cfc
+++ b/src/legacy/Regex.cfc
@@ -378,10 +378,6 @@
<cfif StructKeyExists(Arguments,'ReturnType')>
<cfset Arguments.ReturnType = LCase(Arguments.ReturnType) />
- <!--- INFO: If no unnamed args, don't waste time checking for them. --->
- <cfelseif StructCount(arguments) EQ 2>
- <cfset Arguments.ReturnType = 'exact' />
-
<cfelse>
<cfif StructKeyExists(Arguments,'Exact') AND Arguments.Exact >
<cfset Arguments.ReturnType = "exact" />