• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版cb98e689daac55a6c9109144e5b312e91da21d2b (tree)
时间2019-12-03 18:12:00
作者Dan Villiom Podlaski Christiansen <dan@mage...>
CommiterDan Villiom Podlaski Christiansen

Log Message

prevent emojis from breaking boldness

更改概述

差异

diff -r 8f8da5bb6002 -r cb98e689daac menu.py
--- a/menu.py Thu Nov 28 10:46:28 2019 +0100
+++ b/menu.py Tue Dec 03 10:12:00 2019 +0100
@@ -109,10 +109,6 @@
109109 count=1,
110110 )
111111
112- # milk and gluten
113- line = regex.sub(r'\(?\bG\b\)?,?', ':gluten:', line, count=1)
114- line = regex.sub(r'\(?\bL\b\)?,?', ':lactose:', line, count=1)
115-
116112 line = regex.sub(
117113 f'^{weekday} ', '', line, count=1, flags=regex.IGNORECASE
118114 )
@@ -134,6 +130,10 @@
134130
135131 line = regex.sub(r'^([^[:punct:]]+:)', r'*\1*', line, count=1)
136132
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+
137137 yield line
138138
139139