fix Table#header_cells method #88

Merged
merged 1 commit into from Apr 28, 2012

Projects

None yet

2 participants

@jurriaan
Collaborator

Changed to a non-greedy \w so table's are generated properly

Without fix:

"A1:Q19".gsub(/^(\w+)(\d+)\:(\w+)\d+$/, '\1\2:\3\2')
=> "A1:Q11"

With fix:

"A1:Q19".gsub(/^(\w+?)(\d+)\:(\w+?)\d+$/, '\1\2:\3\2')
=> "A1:Q1"
@randym
Owner

Cheers mate!

@randym randym merged commit 572dc19 into randym:master Apr 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment