Fix numbers being replaced by undescores in API#createImage()

This commit is contained in:
Blue (Lukas Rieger) 2021-07-20 13:56:06 +02:00
parent 5c729b6c0a
commit 47b0c60a7f
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -96,7 +96,7 @@ public Collection<BlueMapWorld> getWorlds() {
@Override
public String createImage(BufferedImage image, String path) throws IOException {
path = path.replaceAll("[^a-zA-Z_\\.\\-\\/]", "_");
path = path.replaceAll("[^a-zA-Z0-9_.\\-/]", "_");
String separator = FileSystems.getDefault().getSeparator();
Path webRoot = plugin.getRenderConfig().getWebRoot().toPath().toAbsolutePath();