Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 0.9.9
    • Fix Version/s: JRuby 0.9.9
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      Mac OS X 10.4.8
    • Number of attachments :
      0

      Description

      The following code display nil and 0 instead of 1 and 1:

      require 'strscan'

      strscan = StringScanner.new('AB')
      strscan.getch
      p strscan.skip_until(/B/)

      strscan = StringScanner.new('AA')
      strscan.getch
      p strscan.skip_until(/A/)

      Note that this only happens in the trunk, 0.9.8 works fine. In fact I think it was working fine yesterday, but today's version does not.

        Activity

        Hide
        Ola Bini added a comment -

        This is probably something with the new Regex engine. I shall have a look at it, and add this as a test case.

        Show
        Ola Bini added a comment - This is probably something with the new Regex engine. I shall have a look at it, and add this as a test case.

          People

          • Assignee:
            Ola Bini
            Reporter:
            Vincent Isambart
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: