Change warning message

This commit is contained in:
filoghost 2021-07-13 19:16:13 +02:00
parent 05826266a5
commit 6d5c1e4a30

View File

@ -86,7 +86,7 @@ public class ReadimageCommand extends LineEditingCommand {
image = ImageReader.readImage(new URL(fileName)); image = ImageReader.readImage(new URL(fileName));
} else { } else {
if (fileName.matches(".*[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-]{1,4}/.+")) { if (fileName.matches(".*[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-]{1,4}/.+")) {
DisplayFormat.sendWarning(sender, "The image path seems to be an URL. If so, please use http:// or https:// in the path."); DisplayFormat.sendWarning(sender, "The image path seems to be an URL. If so, please use the http[s]:// prefix.");
} }
Path targetImage = hologramEditor.getUserReadableFile(fileName); Path targetImage = hologramEditor.getUserReadableFile(fileName);