I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 473ced4d authored by zab2's avatar zab2
Browse files

disable splitting by tabs for now

parent c7771095
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class DefinitionParser {
DefinitionBuilder builder = new DefinitionBuilder();
for (String line : definition) {
String [] split = line.split(" \t");
String [] split = line.split(" ");
split[0] = split[0].toLowerCase();
if ("default".equals(split[0]))
builder.setDefaultThreshold(parseThreshold(line.substring(7).trim()));
......@@ -77,7 +77,7 @@ class DefinitionParser {
String thresholdString = extractThreshold(line);
Threshold threshold = parseThreshold(thresholdString);
String line2 = line.substring(thresholdString.length()).trim();
String[] split = line2.split(" \t");
String[] split = line2.split(" ");
if (split.length < 2)
throw new InvalidDefinitionException("invalid definition "+line);
if ("explicit".equalsIgnoreCase(split[0]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment