Skip to content

Commit 4692106

Browse files
authored
[harmony] Avoid colons in filenames (#218)
* Avoid colons in filenames for extended support on more OSes
1 parent ec90ae6 commit 4692106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harmony/app/canvas.cpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace app_ui:
117117

118118
void sanitize_filename(string &name):
119119
for i := 0; i < name.length(); i++:
120-
if name[i] == '/':
120+
if name[i] == '/' or name[i] == ':':
121121
name[i] = '_'
122122

123123
auto get_stroke_width():
@@ -363,7 +363,7 @@ namespace app_ui:
363363
self.mark_redraw()
364364

365365

366-
// we tack on ".hrm" to the filename
366+
// we tack on ".[timestamp].hrm" to the filename
367367
void save_project(bool overwrite=false):
368368
sanitize_filename(self.project_name)
369369
debug "SAVING PROJECT", self.project_name

0 commit comments

Comments
 (0)