Skip to content

Commit

Permalink
Fix Issues IMB11#65 and IMB11#66
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashy8682 authored Apr 10, 2024
1 parent 687302c commit 871def2
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ public boolean validate() {
}
case FILE -> {
String txt = widget.getText();
if (txt.substring(0, 1).equals("\"") && txt.substring(txt.length() - 1, txt.length()).equals("\"")) {
widget.setText(txt.substring(0, txt.length - 1);
if (txt.indexOf(":") == txt.length() - 1) {
return false;
}
if (txt.length() > 1) {
if (txt.substring(0, 1).equals("\"") && txt.substring(txt.length() - 1, txt.length()).equals("\"")) {
widget.setText(txt.substring(1, txt.length() - 1));
}
}
return isValidFilePath(widget.getText());
}
Expand Down

0 comments on commit 871def2

Please sign in to comment.