Author Topic: split() function bug  (Read 3181 times)

byates

  • Senior Community Member
  • Posts: 105
  • Hero Points: 8
split() function bug
« on: March 02, 2009, 12:24:44 am »
The split() function in the file main.e has a bug (or undocumented feature  :o) ) It will dump the last delimited string in the bit-bucket if the last string only contains white space (spaces or tabs).  This is due to the use of the == when comparing strings.  A check for the string length being zero would solve the problem.
« Last Edit: March 04, 2009, 10:15:27 pm by byates »