Skip to content

Commit

Permalink
Fix bug in dict conversion in docstring (fixes #184)
Browse files Browse the repository at this point in the history
  • Loading branch information
stellabelin committed Nov 20, 2024
1 parent a83f770 commit 9ee9d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/docs_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _create_r_example(doc_list):
pattern_methods = re.compile(r'([A-Za-z]\d*)\.([A-Za-z]\d*)')
pattern_list_idx = re.compile(r'\w\[(\d+)]')
pattern_list = re.compile(r'\[([\'\"\w(),\s]+)]')
pattern_dict = re.compile(r'{(([\'\"]*[\w\d()]+[\'\"]*: [\'\"]*[\w\d]+\'*,*\s*)+)}')
pattern_dict = re.compile(r'\{(([\'\"]*[\w().]+[\'\"]*: [\'\"]*[\w.]+\'*,*\s*)+)}')
pattern_ws = re.compile(r'\s{2,}')
pattern_doctest = re.compile(r'\s+# doctest:.*')

Expand Down

0 comments on commit 9ee9d31

Please sign in to comment.