mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
gen-unicode-tables: Strip whitespace off parsed fields
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -337,7 +337,11 @@ while (<INPUT>)
|
|||||||
next;
|
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);
|
$start_code = hex ($1);
|
||||||
$end_code = hex ($2);
|
$end_code = hex ($2);
|
||||||
|
Reference in New Issue
Block a user