mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 18:40:03 +01:00
gen-unicode-tables: Strip whitespace off parsed fields
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
9770d7ba31
commit
cc350774bf
@ -337,7 +337,11 @@ while (<INPUT>)
|
||||
next;
|
||||
}
|
||||
|
||||
if ($fields[$CODE] =~ /([A-F0-9]{4,6})\.\.([A-F0-9]{4,6})/)
|
||||
# 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);
|
||||
$end_code = hex ($2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user