Commit 16b827bb authored by Markus Georg Bendel's avatar Markus Georg Bendel
Browse files

Change reg expression

parent 7c3928e9
Pipeline #185672 failed with stage
in 1 minute and 24 seconds
......@@ -22,13 +22,13 @@ public class SomeIPConnectionSymbolCreator implements TagSymbolCreator {
/**
* regular expression pattern:
* topic = {({name}, {type}), \( msgField = {msgField} \)\?}
* {serviceID = {serviceID}, instanceID = {instanceID}, eventgroupID = {eventgroupID}}
* to test the pattern just enter:
* \s*\{\s*topic\s*=\s*\(\s*([a-z|A-Z|~|/][0-9|a-z|A-Z|_|/]*)\s*,\s*([a-z|A-Z][0-9|a-z|A-Z|_|/]*)\s*\)\s*(s*,\s*msgField\s*=\s*([a-z|A-Z][a-z|A-Z|1-9|_|\.|::|\(|\)]*)\s*)?\s*\}\s*
* \s*\{\s*serviceID\s*=\s*[0-9]*,\s*instanceID\s*=\s*[0-9]*,\s*eventgroupID\s*=\s*[0-9]*\}\s*
* at http://www.regexplanet.com/advanced/java/index.html
*/
public static final Pattern pattern = Pattern.compile("\\s*\\{\\s*topic\\s*=\\s*([a-z|A-Z|~|/][0-9|a-z|A-Z|_|/]*)\\s*(s*,\\s*msgField\\s*=\\s*([a-z|A-Z][a-z|A-Z|1-9|_|\\.|::|\\(|\\)]*)\\s*)?\\s*\\}\\s*");
public static final Pattern pattern = Pattern.compile("\\\s*\\{\\s*serviceID\\s*=\\s*[0-9]*,\\s*instanceID\\s*=\\s*[0-9]*,\\s*eventgroupID\\s*=\\s*[0-9]*\\}\\s*");
public static Scope getGlobalScope(final Scope scope) {
Scope s = scope;
......@@ -124,7 +124,7 @@ public class SomeIPConnectionSymbolCreator implements TagSymbolCreator {
}
Log.error(String.format("'%s' does not match the specified regex pattern '%s'",
regex,
"{topic = ({name}, {type}), msgField = {msgField}}"));
"{serviceID = {serviceID}, instanceID = {instanceID}, eventgroupID = {eventgroupID}}"));
return null;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment