diff options
| author | Randy Morgan <[email protected]> | 2012-03-13 08:36:24 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-03-13 08:36:24 +0900 |
| commit | 02914fa87594b7377cbcb4eb0d69f1acf8fdcdec (patch) | |
| tree | 4cf744e7ef528502f708647cb7871c25e94f15f6 /lib | |
| parent | 719e4b9dfb601999287bdeae5cc8e29501ff131f (diff) | |
| parent | 547c5e6acfe64c61550acb70cea235e4e9f89f0e (diff) | |
| download | caxlsx-02914fa87594b7377cbcb4eb0d69f1acf8fdcdec.tar.gz caxlsx-02914fa87594b7377cbcb4eb0d69f1acf8fdcdec.zip | |
Merge github.com:/randym/axlsx
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/cell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb index 62fa539f..ff759cdf 100644 --- a/lib/axlsx/workbook/worksheet/cell.rb +++ b/lib/axlsx/workbook/worksheet/cell.rb @@ -230,7 +230,7 @@ module Axlsx # @example Absolute Cell Reference # ws.rows.first.cells.first.r #=> "$A$1" def r_abs - "$#{r.split('').join('$')}" + "$#{r.match(%r{([A-Z]+)([0-9]+)})[1,2].join('$')}" end # @return [Integer] The cellXfs item index applied to this cell. |
