Serenity Operating System
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Meta: Disallow emoji images with invalid code points in their file name

authored by

Timothy Flynn and committed by
Linus Groh
00611859 23afb59a

+7
+7
Meta/check-emoji.py
··· 52 52 found_invalid_filenames = True 53 53 break 54 54 55 + code_points = [int(code_point[len('U+'):], 16) for code_point in filename.split('_')] 56 + 57 + if any(code_point > 0x10ffff for code_point in code_points): 58 + print(f'Filename {filename}.png contains a code point exceeding U+10FFFF') 59 + found_invalid_filenames = True 60 + break 61 + 55 62 return found_invalid_filenames 56 63 57 64