mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
b55d1049d4
@ -387,7 +387,11 @@ public class ExporterDialog extends DialogComponentProvider implements AddressFa
|
|||||||
|
|
||||||
private String appendExporterFileExtension(String filename) {
|
private String appendExporterFileExtension(String filename) {
|
||||||
Exporter exporter = getSelectedExporter();
|
Exporter exporter = getSelectedExporter();
|
||||||
String extension = "." + exporter.getDefaultFileExtension();
|
String extension = exporter.getDefaultFileExtension();
|
||||||
|
if (extension.isEmpty()) {
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
extension = "." + extension;
|
||||||
if (!filename.toLowerCase().endsWith(extension.toLowerCase())) {
|
if (!filename.toLowerCase().endsWith(extension.toLowerCase())) {
|
||||||
return filename + extension;
|
return filename + extension;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user