reMatchNoCase empty results array

on http://trycf.com lucee 5 and https://docs.lucee.org/

this returns an EMPTY array

cfdump var=“#reMatchNoCase(‘^[0-9a-z]{2,17}$’, ‘r’ )#” />

but this returns - Array with 1 empty element.
cfdump var=“#reMatchNoCase(‘^[0-9a-z]{0,17}$’, ‘’ )#” />

Which is correct behavior?

ALSO
on our
lucee ver 5.3.8.206
jvm 1.8.0_181-b13

second case returns an ampty array (with 0 elements).

what is the designed result please

The second case returns an empty string in 5.3.8.206 due to this regression in 5.3.8
https://luceeserver.atlassian.net/browse/LDEV-3703

The ticket was fixed in 5.3.9 & 5.3.10

1 Like