mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
Meta: Enforce no leading zeros for emoji filenames
The current lookup code and emoji.txt generator expects codepoints to not include leading zeros. This may change in the future, but it's worth enforcing the current convention until then.
This commit is contained in:
parent
5297c22eaa
commit
9d14ed6c14
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ for fn in "${files[@]}"; do
|
||||||
echo "$fn contains invalid characters in its filename. Only uppercase letters, numbers, +, and _ should be used."
|
echo "$fn contains invalid characters in its filename. Only uppercase letters, numbers, +, and _ should be used."
|
||||||
found_invalid_filenames=1
|
found_invalid_filenames=1
|
||||||
fi
|
fi
|
||||||
|
if [[ $basename == *U+0* ]] ; then
|
||||||
|
echo "$fn contains codepoint(s) with leading zeros. Leading zeros should be removed from codepoint(s)."
|
||||||
|
found_invalid_filenames=1
|
||||||
|
fi
|
||||||
if [[ $basename == *+U* ]] ; then
|
if [[ $basename == *+U* ]] ; then
|
||||||
echo "$fn is incorrectly named. _ should be used as a separator between codepoints, not +."
|
echo "$fn is incorrectly named. _ should be used as a separator between codepoints, not +."
|
||||||
found_invalid_filenames=1
|
found_invalid_filenames=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue