Skip to content

Commit 9b1a35d

Browse files
author
Luca Bianconi
committed
fix: message escaping
1 parent 7798f25 commit 9b1a35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: commands/sketch/new.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func validateSketchName(name string) error {
8080
sketchNameMaxLength))}
8181
}
8282
if !sketchNameValidationRegex.MatchString(name) {
83-
return &arduino.CantCreateSketchError{Cause: errors.New(tr(`invalid sketch name \"%[1]s\": the first character must be alphanumeric, the following ones can also contain "_", "-", and ".".`,
83+
return &arduino.CantCreateSketchError{Cause: errors.New(tr(`invalid sketch name "%[1]s": the first character must be alphanumeric, the following ones can also contain "_", "-", and ".".`,
8484
name))}
8585
}
8686
return nil

0 commit comments

Comments
 (0)