Skip to content

Commit

Permalink
replace regex in configobj (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Oct 23, 2023
1 parent 5369e85 commit ef38178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Move ``strun`` to entrypoints [#101]
- Deprecate ``preserve_comments`` fix spec parsing for inline comments with
a closing parenthesis [#107]
- Fix regex issue in internal configobj [#108]

0.5.0 (2023-04-19)
==================
Expand Down
2 changes: 1 addition & 1 deletion src/stpipe/extern/configobj/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class Validator:
"""

# this regex does the initial parsing of the checks
_func_re = re.compile(r'(.+?)\((.*)\)', re.DOTALL)
_func_re = re.compile(r'([^\(\)]+?)\((.*)\)', re.DOTALL)

# this regex takes apart keyword arguments
_key_arg = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*)$', re.DOTALL)
Expand Down

0 comments on commit ef38178

Please sign in to comment.