Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-3047

listFilter() doesn't correctly handle multi-char delimiters

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.005
    • Fix Version/s: 4.3.0.000, 4.2.0.008
    • Labels:
      None

      Description

      See:
      http://cfmlblog.adamcameron.me/2014/04/bugs-in-iterator-functions-in-both.html

      Repro:
      original = "11,23;31:43^53-61";
      delims = ",;:^-";

      filtered = listFilter(original,function(v)

      { return reFind("3$", v); }

      ,delims);

      writeDump([original,filtered]);

      On both Railo (4.2.0.007) and ColdFusion (11 beta) we get this:

      Array
      1
      string 11,23;31:43^53-61
      2
      string 23,;:-43,;:-53


      Adam

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: