Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 3741cc7

Browse files
committed
domainGeneratorConnector: allow empty arguments
The domain generator was using the "merge delimiters" behaviour of the tokenizer which made it impossible to have empty tokens; e.g.: - empty rules; - empty config/domain names (even though this is forbidden, this is not for the generator to decide); - empty string parameter value; - ... It now uses the new "don't merge delimiters" behaviour. Signed-off-by: David Wagner <[email protected]>
1 parent 936222f commit 3741cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/xmlGenerator/domainGeneratorConnector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ size_t XmlGenerator::parse(std::istream &input)
155155
while (not input.eof()) {
156156
std::getline(std::cin, line);
157157

158-
auto tokens = Tokenizer(line, string(1, '\0')).split();
158+
auto tokens = Tokenizer(line, string(1, '\0'), false).split();
159159
if (tokens.empty()) {
160160
continue;
161161
}

0 commit comments

Comments
 (0)