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

Commit c2cd8ff

Browse files
committed
fix(pandoc-import-code): regexp for line hightlights > 10
see the related issue in Vuepress at https://github.com/vuejs/vuepress/pull/2225\#pullrequestreview-383299796
1 parent f6f8cae commit c2cd8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandoc_import_code.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def action(elem, doc):
134134
else:
135135
raise ValueError(f'[code import] {raw_path} should begin with @/')
136136

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

140140
if search is None:

0 commit comments

Comments
 (0)