Skip to content

Commit

Permalink
Fix parsing errors in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHaas committed Oct 1, 2024
1 parent e3fe562 commit f660f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/main/java/com/dat3m/ui/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void actionPerformed(ActionEvent event) {
if (chooser.showOpenDialog(null) == APPROVE_OPTION) {
String path = chooser.getSelectedFile().getPath();
loadedPath = path.substring(0, path.lastIndexOf('/') + 1);
String format = path.endsWith("spv.dis") ? "spv.dis" : path.substring(path.indexOf('.') + 1).trim();
String format = path.endsWith("spv.dis") ? "spv.dis" : path.substring(path.lastIndexOf('.') + 1).trim();
if (allowedFormats.contains(format)) {
loadedFormat = format;
notifyListeners();
Expand Down

0 comments on commit f660f18

Please sign in to comment.