From 473ced4d4a8c2d661a207e1ba88016fa58e5dfd8 Mon Sep 17 00:00:00 2001 From: zab2 <zab2@mail.i2p> Date: Wed, 27 Mar 2019 15:19:45 +0000 Subject: [PATCH] disable splitting by tabs for now --- .../java/src/net/i2p/i2ptunnel/access/DefinitionParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/DefinitionParser.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/DefinitionParser.java index 9fea9fd7d3..0afb13dd74 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/DefinitionParser.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/DefinitionParser.java @@ -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])) -- GitLab