summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorBulbyVR <26726264+TheDrawingCoder-Gamer@users.noreply.github.com>2022-04-22 21:42:29 -0400
committerBulbyVR <26726264+TheDrawingCoder-Gamer@users.noreply.github.com>2022-04-24 12:25:01 -0400
commit209865e8826e9107cba5b41eed9e9ca00e1b1276 (patch)
tree082b22a520a4ca11d858a5c53a9bb956e497667d /scripts
parentForgot linting (diff)
downloadnheko-209865e8826e9107cba5b41eed9e9ca00e1b1276.tar.xz
Add more aliases, start on regional indicators
Diffstat (limited to 'scripts')
-rw-r--r--scripts/codegen.sh2
-rwxr-xr-xscripts/emoji_codegen.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/codegen.sh b/scripts/codegen.sh
index 77fa3ab1..24fbc6be 100644
--- a/scripts/codegen.sh
+++ b/scripts/codegen.sh
@@ -2,6 +2,6 @@
 ROOT=$(realpath "$PWD/$(dirname "$0")/..")
 cd $ROOT
 cat resources/provider-header.txt > src/emoji/Provider.cpp 
-
+# cat resources/extra_emoji.txt resources/emoji-test.txt > resources/complete-emoji.txt
 scripts/emoji_codegen.py resources/emoji-test.txt resources/shortcodes.txt >> src/emoji/Provider.cpp
 cd - > /dev/null
diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py
index 9dae1544..05b1d764 100755
--- a/scripts/emoji_codegen.py
+++ b/scripts/emoji_codegen.py
@@ -78,7 +78,7 @@ if __name__ == '__main__':
             continue
 
 
-        char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName).groups()
+        char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName.strip()).groups()
         shortname = name
 
         #TODO: Handle skintone modifiers in a sane way