Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with numbers 10+ as well as potential dot issue #3

Open
davmf opened this issue Nov 10, 2017 · 1 comment
Open

Issue with numbers 10+ as well as potential dot issue #3

davmf opened this issue Nov 10, 2017 · 1 comment

Comments

@davmf
Copy link

davmf commented Nov 10, 2017

I find this plugin very useful, but there appears to be an issue with numbers with more than 1 digit.

I suggest an update to your regular expressions as shown below. Note that I also suggest a change with the use of the dot setting which I 'think' is necessary:

pattern_header_num = re.compile(
        r'(#+)\s+((?:\d+' + ('\\.' if dot == '.' else dot) + ')*\d+)' + last_dot + '(.*)')

pattern_header_num_replace = re.compile(
        r'(\d+' + ('\\.' if dot == '.' else dot) + ')*\d+' + last_dot)
weituotian pushed a commit that referenced this issue Mar 21, 2018
@weituotian
Copy link
Owner

thanks for your great excellent advice !
if you have more free times, please join us in this repository.

this commit had updated the regexs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants