This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new bd89952e5c FINERACT-2326: Improve command query param regexp to allow 
hyphens
bd89952e5c is described below

commit bd89952e5c91688e833882126be0dafa8b1dc1e0
Author: Adam Saghy <[email protected]>
AuthorDate: Thu Aug 14 21:20:34 2025 +0200

    FINERACT-2326: Improve command query param regexp to allow hyphens
---
 .../java/org/apache/fineract/batch/command/CommandStrategyProvider.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fineract-core/src/main/java/org/apache/fineract/batch/command/CommandStrategyProvider.java
 
b/fineract-core/src/main/java/org/apache/fineract/batch/command/CommandStrategyProvider.java
index 436f0ce300..ccc7d5a107 100644
--- 
a/fineract-core/src/main/java/org/apache/fineract/batch/command/CommandStrategyProvider.java
+++ 
b/fineract-core/src/main/java/org/apache/fineract/batch/command/CommandStrategyProvider.java
@@ -57,7 +57,7 @@ public class CommandStrategyProvider {
     /**
      * Regex pattern for specifying any query param that has key = 'command' 
or not specific anything.
      */
-    private static final String OPTIONAL_COMMAND_PARAM_REGEX = 
"(\\?command=[\\w]+)?";
+    private static final String OPTIONAL_COMMAND_PARAM_REGEX = 
"(\\?command=[\\w\\-]+)?";
 
     /**
      * Regex pattern for specifying a mandatory query param that has key = 
'command'.

Reply via email to