At least in versions 14.6.4 to 14.10.0 the result of a 'find' command differs for me between the Java and Javascript version.
In the following example the Java version finds 149 matches and the Javascript version only 125 matches in an array. For me it looks like the Java version has the correct results.
Command:
var matchedGeneKeys = fullGeneKeys.find(geneKeyRegExp, "");
I have attached the following example files (filenames match the variable names):
find_java-matchedGeneKeys.txt
find_javascript-matchedGeneKeys.txt
find_java-fullGeneKeys.txt
find_javascript-fullGeneKeys.txt
find-geneKeyRegExp.txt
I will take a look.
Please send an actual script file to test.
I have put the example data into the attached script file.
Fixed for Jmol 14.17.2, to be released June 4.