Tools(listFontWithLang.pl): Allow the include of the separator glyph in the list of chars

For instance:
	listFontWithLang.pl -c 'a-z\,A-Z'
is not the same now as
	listFontWithLang.pl -c 'a-z,A-Z'
This commit is contained in:
Kornel Benko 2020-07-11 12:46:26 +02:00
parent 40e071c7cb
commit b030dc5b8b

View File

@ -101,7 +101,7 @@ sub handleOptions($)
}
else {
if (defined($optionsDef{$option}->{listsep})) {
my @list = split($optionsDef{$option}->{listsep}, $value);
my @list = split(/(?<!\\)$optionsDef{$option}->{listsep}/, $value);
$options{$fieldname} = \@list;
}
else {