remotes/1693045480750635534/spooky-22
Aevann1 2021-11-25 23:41:10 +02:00
parent 2a1a1d866d
commit e6217d6f70
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
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:
return SLURS[match.group(0).lower()]

View File

@ -53,7 +53,7 @@
<tr>
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></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>
{% endfor %}
</table>