Feneric / doxypypy

A more Pythonic version of doxypy, a Doxygen filter for Python.
GNU General Public License v2.0
149 stars 49 forks source link

Do not match string prefix at end of docstring #87

Open panicgh opened 2 years ago

panicgh commented 2 years ago

The original docstring regex removed sequences such as r""" from a docstring regardless if it appeared at the beginning or at the end of the docstring: r"""Simulator""" erroneously becomes Simulato. However, r etc. are string prefixes and do not appear at the end of a string.

Therefore, this commit changes the regex to match string prefixes only at the beginning of the docstring and not at the end.

(Closes #84)