gen-unicode-tables: Strip whitespace off parsed fields

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2023-10-17 22:03:49 +01:00
parent 9770d7ba31
commit cc350774bf

View File

@ -337,6 +337,10 @@ while (<INPUT>)
next;
}
# Trim leading and trailing whitespace
$fields[$CODE] =~ s/^\s+|\s+$//;
$fields[$BREAK_PROPERTY] =~ s/^\s+|\s+$//;
if ($fields[$CODE] =~ /([A-F0-9]{4,6})\.\.([A-F0-9]{4,6})/)
{
$start_code = hex ($1);