修订版 | cb98e689daac55a6c9109144e5b312e91da21d2b (tree) |
---|---|
时间 | 2019-12-03 18:12:00 |
作者 | Dan Villiom Podlaski Christiansen <dan@mage...> |
Commiter | Dan Villiom Podlaski Christiansen |
prevent emojis from breaking boldness
@@ -109,10 +109,6 @@ | ||
109 | 109 | count=1, |
110 | 110 | ) |
111 | 111 | |
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 | - | |
116 | 112 | line = regex.sub( |
117 | 113 | f'^{weekday} ', '', line, count=1, flags=regex.IGNORECASE |
118 | 114 | ) |
@@ -134,6 +130,10 @@ | ||
134 | 130 | |
135 | 131 | line = regex.sub(r'^([^[:punct:]]+:)', r'*\1*', line, count=1) |
136 | 132 | |
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 | + | |
137 | 137 | yield line |
138 | 138 | |
139 | 139 |