mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Fixed #586.
This commit is contained in:
parent
a8e9b6926a
commit
6bcbc743dd
1 changed files with 2 additions and 2 deletions
|
@ -718,10 +718,10 @@ sub accept {
|
|||
my ($self, $event) = @_;
|
||||
|
||||
if (($self->{chosen_name} = $self->{combo}->GetValue)) {
|
||||
if ($self->{chosen_name} =~ /^[a-z0-9 _-]+$/i) {
|
||||
if ($self->{chosen_name} =~ /^[^<>:\/\\|?*\"]+$/i) {
|
||||
$self->EndModal(wxID_OK);
|
||||
} else {
|
||||
Slic3r::GUI::show_error($self, "The supplied name is not valid.");
|
||||
Slic3r::GUI::show_error($self, "The supplied name is not valid; the following characters are not allowed: <>:/\|?*\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue