Skip to content

Commit

Permalink
Correctly handle filenames that contain "." prior to the extension.
Browse files Browse the repository at this point in the history
Resolves #115.
  • Loading branch information
ShaheedHaque committed Mar 7, 2024
1 parent 1caf894 commit 7a6ca6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyexcel_io/writers/csv_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(

def get_writer(self):
if self._sheet_name != constants.DEFAULT_SHEET_NAME:
names = self._native_book.split(".")
names = self._native_book.rsplit(".", 1)
file_name = "%s%s%s%s%s.%s" % (
names[0],
constants.DEFAULT_MULTI_CSV_SEPARATOR,
Expand Down

0 comments on commit 7a6ca6e

Please sign in to comment.