lib/write_xlsx/workbook.rb in write_xlsx-1.11.1 vs lib/write_xlsx/workbook.rb in write_xlsx-1.11.2

- old
+ new

@@ -713,19 +713,19 @@ cells = range[pos + 1..-1] end # Split the cell range into 2 cells or else use single cell for both. if cells =~ /:/ - cell_1, cell_2 = cells.split(/:/) + cell_1, cell_2 = cells.split(":") else cell_1 = cells cell_2 = cells end # Remove leading/trailing apostrophes and convert escaped quotes to single. sheetname.sub!(/^'/, '') sheetname.sub!(/'$/, '') - sheetname.gsub!(/''/, "'") + sheetname.gsub!("''", "'") row_start, col_start = xl_cell_to_rowcol(cell_1) row_end, col_end = xl_cell_to_rowcol(cell_2) # Check that we have a 1D range only.