Skip to content

Commit

Permalink
Match an empty string properly. Fixes #573
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Nov 17, 2010
1 parent 59b0162 commit 8912734
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/strscan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ def _scan(pattern, advance_pos, getstr, headonly)

@match = nil

return nil if eos?

if headonly
# NOTE - match_start is an Oniguruma feature that Rubinius exposes.
# We use it here to avoid creating a new Regexp with '^' prepended.
Expand Down

0 comments on commit 8912734

Please sign in to comment.