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

Commit 53cbf54

Browse files
committed
fix: regexp for line hightlights > 10
see the related issue in Vuepress at https://github.com/vuejs/vuepress/pull/2225\#pullrequestreview-383299796
1 parent 06f1d99 commit 53cbf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandoc_import_code.py

Lines changed: 1 addition & 1 deletion
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)