mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixing dl problem with regexp
This commit is contained in:
parent
f664eb53e7
commit
1f774a8299
2 changed files with 2 additions and 2 deletions
|
@ -47,6 +47,6 @@ export const getGPXString = ({ route, title, stickers }: IGetGPXString): string
|
|||
export const downloadGPXTrack = ({ track, title }: { track: string, title?: string }): void => (
|
||||
saveAs(
|
||||
new Blob([track], { type: 'application/gpx+xml;charset=utf-8' }),
|
||||
`${(title || 'track').replace('.', '')}.gpx`
|
||||
`${(title || 'track').replace(/\./ig, ' ')}.gpx`
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue