From 6259780693ed8a73f6ce8f671bf0f890b8d5ed9a Mon Sep 17 00:00:00 2001 From: GregorioMonari <102193750+GregorioMonari@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:31:03 +0100 Subject: [PATCH] fix(client-api): fixed regex typo In regex language "." means concatenation, not dot. --- .../arces/wot/sepa/commons/properties/SPARQL11SEProperties.java | 2 +- .../main/java/it/unibo/arces/wot/sepa/engine/core/Engine.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client-api/src/main/java/it/unibo/arces/wot/sepa/commons/properties/SPARQL11SEProperties.java b/client-api/src/main/java/it/unibo/arces/wot/sepa/commons/properties/SPARQL11SEProperties.java index 11adc036..d721aea2 100644 --- a/client-api/src/main/java/it/unibo/arces/wot/sepa/commons/properties/SPARQL11SEProperties.java +++ b/client-api/src/main/java/it/unibo/arces/wot/sepa/commons/properties/SPARQL11SEProperties.java @@ -192,7 +192,7 @@ protected final void setParameter(String key,String value) { break; default: if (key.startsWith("-sparql11seprotocol.availableProtocols")) { - String[] token = key.split("."); + String[] token = key.split("\\."); if (token[3] == "path") this.sparql11seprotocol.availableProtocols.get(token[2]).path = value; else if (token[3] == "port") this.sparql11seprotocol.availableProtocols.get(token[2]).port = Integer.valueOf(value); else if (token[3] == "scheme") this.sparql11seprotocol.availableProtocols.get(token[2]).scheme = value; diff --git a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/core/Engine.java b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/core/Engine.java index e5a7814e..107bf4e9 100644 --- a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/core/Engine.java +++ b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/core/Engine.java @@ -41,7 +41,7 @@ */ public class Engine implements EngineMBean { - private final static String version = "0.12.2023.09.14"; + private final static String version = "0.13.2024.01.22"; private EngineProperties properties = null;