• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Commit MetaInfo

Revisão793db078e59d67695234e3a7fbc6bf745d56ef93 (tree)
Hora2019-12-10 04:38:35
AutorDan Villiom Podlaski Christiansen <dan@mage...>
CommiterDan Villiom Podlaski Christiansen

Mensagem de Log

use standard emoji for lactose & gluten

The mobile client doesn't handle custom emoji well, unfortunately.

Mudança Sumário

Diff

diff -r 98e48b44a369 -r 793db078e59d menu.py
--- a/menu.py Mon Dec 09 20:29:55 2019 +0100
+++ b/menu.py Mon Dec 09 20:38:35 2019 +0100
@@ -109,6 +109,12 @@
109109 count=1,
110110 )
111111
112+ # use LOAF OF BREAD for gluten
113+ line = regex.sub(r'\(?\bG\b\)?,?', '\U0001F35E', line, count=1)
114+
115+ # use GLASS OF MILK for lactose
116+ line = regex.sub(r'\(?\bL\b\)?,?', '\U0001F95B', line, count=1)
117+
112118 line = regex.sub(
113119 f'^{weekday} ', '', line, count=1, flags=regex.IGNORECASE
114120 )
@@ -130,10 +136,6 @@
130136
131137 line = regex.sub(r'^([^[:punct:]]+:)', r'*\1*', line, count=1)
132138
133- # milk and gluten
134- line = regex.sub(r'\(?\bG\b\)?,?', ':gluten:', line, count=1)
135- line = regex.sub(r'\(?\bL\b\)?,?', ':lactose:', line, count=1)
136-
137139 yield line
138140
139141