Menu

#593 Find results differ between Java and Javascript version

v12
open
nobody
None
5
2017-06-04
2017-06-01
Rolf Huehne
No

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

5 Attachments

Discussion

  • Bob Hanson

    Bob Hanson - 2017-06-01

    I will take a look.

     
  • Bob Hanson

    Bob Hanson - 2017-06-01

    Please send an actual script file to test.

     
  • Rolf Huehne

    Rolf Huehne - 2017-06-01

    I have put the example data into the attached script file.

     
  • Bob Hanson

    Bob Hanson - 2017-06-04

    Fixed for Jmol 14.17.2, to be released June 4.

     

Log in to post a comment.