diff options
author | Bruno Sakoto <bruno.sakoto@bell.ca> | 2021-04-07 12:55:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-04-07 12:55:41 +0000 |
commit | 6b300ead182d9724658f0188631e538851e8f566 (patch) | |
tree | 5f48c8b2c2e70884a7fbb0be66e32bd99ae149f4 /cps-ri/src/main/java | |
parent | 4b8ae57149d157cfe8619f99dd8fb82e067f26ce (diff) | |
parent | 6e4ce6970552917c0f35617164017d93bd6b2f1b (diff) |
Merge "Fix security hotspots n Regex"
Diffstat (limited to 'cps-ri/src/main/java')
-rw-r--r-- | cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java b/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java index 7b9bfba174..97a304d763 100644 --- a/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/query/CpsPathQuery.java @@ -39,7 +39,8 @@ public class CpsPathQuery { private static final String NON_CAPTURING_GROUP_1_TO_99_YANG_CONTAINERS = "((?:\\/[^\\/]+){1,99})"; - private static final String YANG_LEAF_VALUE_EQUALS_CONDITION = "\\[\\s*@(\\S+?)\\s*=\\s*(.*?)\\s*\\]"; + private static final String YANG_LEAF_VALUE_EQUALS_CONDITION = + "\\[\\s{0,9}@(\\S+?)\\s{0,9}=\\s{0,9}(.*?)\\s{0,9}\\]"; private static final Pattern QUERY_CPS_PATH_WITH_SINGLE_LEAF_PATTERN = Pattern.compile(NON_CAPTURING_GROUP_1_TO_99_YANG_CONTAINERS + YANG_LEAF_VALUE_EQUALS_CONDITION); |