Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.
This is probably something with the new Regex engine. I shall have a look at it, and add this as a test case.