diff --git a/gen_docs.py b/gen_docs.py index 4e8d45a..90141d3 100644 --- a/gen_docs.py +++ b/gen_docs.py @@ -49,7 +49,7 @@ def format_raises(string, f): def format_examples(string, f): - example_list = re.findall(r'>{3}[\s\w=.("+:,)]+', string) + example_list = re.findall(r'>{3}[\s\w=.("+:,\-)]+', string) f.write('\n## Examples\n') f.write('```python\n{}\n```\n'.format('\n'.join(example_list)))