fdsf
This commit is contained in:
parent
0067750eb4
commit
2b8e234ebe
2 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
||||||
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
||||||
|
|
||||||
single_words = "|".join([slur.lower() for slur in SLURS.keys()])
|
single_words = "|".join([slur.lower() for slur in SLURS.keys()])
|
||||||
SLUR_REGEX = re.compile(rf"(?i)(?<=\s|>)({single_words})(?=[\s<,.]|s[\s<,.])")
|
SLUR_REGEX = re.compile(rf"(?i)(?<=\s|>|^)({single_words})(?=[\s<,.]|s[\s<,.]|$)")
|
||||||
|
|
||||||
def sub_matcher(match: re.Match) -> str:
|
def sub_matcher(match: re.Match) -> str:
|
||||||
return SLURS[match.group(0).lower()]
|
return SLURS[match.group(0).lower()]
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
||||||
<td style="font-weight: bold">{{a['title']}}</td>
|
<td style="font-weight: bold">{{a['title']}}</td>
|
||||||
<td><input type="number" class="form-control" name="{{a['kind']}}" value="0" max="10" placeholder="Enter amount..." ></td>
|
<td><input type="number" class="form-control" name="{{a['kind']}}" value="0" min="0" max="10" placeholder="Enter amount..." ></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue