renamed the `heart` modifier to `love`
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 10 KiB |
|
@ -111,7 +111,7 @@ const findAllEmoteEndings = (word) => {
|
|||
continue;
|
||||
}
|
||||
|
||||
if(currWord.endsWith('heart')) {
|
||||
if(currWord.endsWith('love')) {
|
||||
if(currEndings.indexOf(MODIFIERS.LOVE) !== -1) {
|
||||
hasReachedNonModifer = true;
|
||||
continue;
|
||||
|
|
|
@ -246,12 +246,12 @@ def find_all_emote_endings(word):
|
|||
curr_word = curr_word[:-8]
|
||||
continue
|
||||
|
||||
if curr_word.endswith('heart'):
|
||||
if 'heart' in endings:
|
||||
if curr_word.endswith('love'):
|
||||
if 'love' in endings:
|
||||
is_non_ending_found = True
|
||||
continue
|
||||
endings.append('heart')
|
||||
curr_word = curr_word[:-5]
|
||||
endings.append('love')
|
||||
curr_word = curr_word[:-4]
|
||||
continue
|
||||
|
||||
is_non_ending_found = True
|
||||
|
@ -297,7 +297,7 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
|
|||
is_talking = 'talking' in ending_modifiers
|
||||
is_patted = 'pat' in ending_modifiers
|
||||
is_talking_first = ending_modifiers.index('pat') > ending_modifiers.index('talking') if is_talking and is_patted else False
|
||||
is_loved = 'heart' in ending_modifiers
|
||||
is_loved = 'love' in ending_modifiers
|
||||
is_genocided = 'genocide' in ending_modifiers
|
||||
is_user = emoji.startswith('@')
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ def submit_emojis(v):
|
|||
return render_template("submit_emojis.html", v=v, emojis=emojis)
|
||||
|
||||
|
||||
emoji_modifiers = ('pat', 'talking', 'genocide', 'heart')
|
||||
emoji_modifiers = ('pat', 'talking', 'genocide', 'love')
|
||||
|
||||
@app.post("/submit/emojis")
|
||||
@limiter.limit('1/second', scope=rpath)
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<label class="emoji-option" for="emoji-sel-4">Genocide</label>
|
||||
</div>
|
||||
<div style="display: inline" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Makes Marsey love this emoji!">
|
||||
<input type="checkbox" id="emoji-sel-5" value="heart" class="emoji-postfix">
|
||||
<input type="checkbox" id="emoji-sel-5" value="love" class="emoji-postfix">
|
||||
<label class="emoji-option" for="emoji-sel-5">Love</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|