Browse Source

If wanting `--all`, collect magic words as well

main
decentral1se 1 year ago
parent
commit
a33eb720b3
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      etherpump/commands/pull.py

2
etherpump/commands/pull.py

@ -374,7 +374,7 @@ async def handle_pad(args, padid, data, info, session):
##########################################
# INCLUDE __XXX__ MAGIC WORDS
##########################################
if args.magicwords:
if args.all or args.magicwords:
pattern = r"__[a-zA-Z0-9]+?__"
all_matches = re.findall(pattern, text)
magic_words = list(set(all_matches))

Loading…
Cancel
Save