05de3e7 Fix regression introduced to Replace.
src/Regex.cfc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Regex.cfc b/src/Regex.cfc
index 4629fd9..c8aee70 100644
--- a/src/Regex.cfc
+++ b/src/Regex.cfc
@@ -515,9 +515,10 @@
<cfif isSimpleValue(Arguments.Replacement[ReplacePos])>
<cfset Matcher.appendReplacement( Results , Arguments.Replacement[ReplacePos] )/>
<cfelse>
+ <cfset var CurrentReplaceFunc = Arguments.Replacement[ReplacePos] />
<cfset Matcher.appendReplacement
( Results
- , Arguments.Replacement[ReplacePos]( ArgumentCollection=buildMatchInfo(Matcher,Offset,Arguments.GroupNames) , Data = Arguments.CallbackData )
+ , CurrentReplaceFunc( ArgumentCollection=buildMatchInfo(Matcher,Offset,Arguments.GroupNames) , Data = Arguments.CallbackData )
)/>
</cfif>