Non-alphanumeric characters in sketch name replaced in "Save As..." dialog #2097
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The names of Arduino sketches may contain
.
and-
characters in addition to basic alphanumeric characters.🐛
.
and-
characters in the current sketch name are unnecessarily replaced with_
in the default sketch name that is prepopulated in the save as dialog.To reproduce
foo.bar-baz
🐛 The sketch name prepopulated in the save as dialog is
foo_bar_baz
instead of the originalfoo.bar-baz
Expected behavior
The base sketch name is used verbatim in the prepopulated sketch name in the save as dialog.
Arduino IDE version
arduino-ide_nightly-20230612_Linux_64bit.AppImage
Operating system
Operating system version
Additional context
A location outside the sketchbook folder was used in step (3) of the demo to avoid the introduction of the irrelevant complexity of the anti-collision suffix (e.g.,
_copy_20230612092238
), but the fault of the unnecessary character replacements occurs even if the sketch is saved in the sketchbook at that step.Additional reports
Issue checklist
The text was updated successfully, but these errors were encountered: