Browse Source
If wanting `--all`, collect magic words as well
main
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
1 additions and
1 deletions
-
etherpump/commands/pull.py
|
@ -374,7 +374,7 @@ async def handle_pad(args, padid, data, info, session): |
|
|
########################################## |
|
|
########################################## |
|
|
# INCLUDE __XXX__ MAGIC WORDS |
|
|
# INCLUDE __XXX__ MAGIC WORDS |
|
|
########################################## |
|
|
########################################## |
|
|
if args.magicwords: |
|
|
if args.all or args.magicwords: |
|
|
pattern = r"__[a-zA-Z0-9]+?__" |
|
|
pattern = r"__[a-zA-Z0-9]+?__" |
|
|
all_matches = re.findall(pattern, text) |
|
|
all_matches = re.findall(pattern, text) |
|
|
magic_words = list(set(all_matches)) |
|
|
magic_words = list(set(all_matches)) |
|
|