Skip to content

Commit

Permalink
search: more lenient DDG test for Unicode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed May 19, 2020
1 parent 0ae1d8a commit a687ab7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sopel/modules/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def duck_api(query):
@commands('duck', 'ddg', 'g')
# test for bad Unicode handling in py2
@example(
'.duck grandorder.wiki chulainn alter',
r'https://grandorder.wiki/C%C3%BA_Chulainn_(Alter)',
'.duck site:grandorder.wiki chulainn alter',
r'https?:\/\/grandorder\.wiki\/C%C3%BA_Chulainn.*',
re=True,
online=True)
# the last example (in source line order) is what .help displays
@example(
Expand Down

0 comments on commit a687ab7

Please sign in to comment.