Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
fix: regexp for line hightlights > 10
Browse files Browse the repository at this point in the history
  • Loading branch information
nlm-pro committed Apr 5, 2020
1 parent 06f1d99 commit 53cbf54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandoc_import_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def action(elem, doc):
else:
raise ValueError(f'[code import] {raw_path} should begin with @/')

rawPathRegexp = r'^(.+(?:\.([a-z]+)))(?:#([\w-]+))?(?: ?({\d(?:[,-]\d)?}))?$'
rawPathRegexp = r'^(.+(?:\.([a-z]+)))(?:#([\w-]+))?(?: ?({\d+(?:[,-]\d+)?}))?$'
search = re.search(rawPathRegexp, raw_path)

if search is None:
Expand Down

0 comments on commit 53cbf54

Please sign in to comment.