Skip to content

Commit e2d62ce

Browse files
fix(CSVExportButton): convert : into _ when downloading a CSV (#5372)
1 parent e894103 commit e2d62ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/components/CSVExportButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class CSVExportButton extends PureComponent<StateProps, {}> {
5454
const {files} = this.props
5555
const formatter = createDateTimeFormatter('YYYY-MM-DD HH:mm')
5656
const csv = files.join('\n\n')
57-
const now = formatter.format(new Date()).replace(/\s+/gi, '_')
57+
const now = formatter.format(new Date()).replace(/[:\s]+/gi, '_')
5858
const filename = `${now} InfluxDB Data`
5959

6060
downloadTextFile(csv, filename, '.csv', 'text/csv')

0 commit comments

Comments
 (0)