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 74cc574 commit a3dd3d2
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 a3dd3d2

Please sign in to comment.