Skip to content

Commit

Permalink
Merge pull request #255 from RobertRehberg/method_missing_for_cell_de…
Browse files Browse the repository at this point in the history
…legation

Fix regular expression not accepting multiple digits.
  • Loading branch information
simonoff committed Sep 21, 2015
2 parents dc3786b + f4b0c47 commit 1586ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roo/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def to_xml
def method_missing(m, *args)
# #aa42 => #cell('aa',42)
# #aa42('Sheet1') => #cell('aa',42,'Sheet1')
if m =~ /^([a-z]+)(\d)$/
if m =~ /^([a-z]+)(\d+)$/
col = ::Roo::Utils.letter_to_number(Regexp.last_match[1])
row = Regexp.last_match[2].to_i
if args.empty?
Expand Down

0 comments on commit 1586ef2

Please sign in to comment.