Browse Source

no more doubles

main
ccl 2 years ago
parent
commit
945e77cb4b
  1. 1
      etherpump/commands/pull.py

1
etherpump/commands/pull.py

@ -382,6 +382,7 @@ async def handle_pad(args, padid, data, info, session):
##########################################
pattern = r'__[a-zA-Z0-9]+?__'
magic_words = re.findall(pattern, text)
magic_words = list(set(magic_words))
if magic_words:
meta["magicwords"] = magic_words
print('FOUND MAGIC WORD(s): {} in {}'.format(magic_words, padid))

Loading…
Cancel
Save