Skip to content
Snippets Groups Projects
Verified Commit c04a0bfd authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Add todo

parent 5ace318a
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,9 @@ def inner_cfi_to_kr(xml: Tag, inner_cfi_ref: str, basedir: str, files_index: dic ...@@ -245,6 +245,9 @@ def inner_cfi_to_kr(xml: Tag, inner_cfi_ref: str, basedir: str, files_index: dic
element_regex = r"(\d+)(?:\[(.*)\])?" element_regex = r"(\d+)(?:\[(.*)\])?"
pointer_regex = r"(\d+)(?:\[(.*)\])!" pointer_regex = r"(\d+)(?:\[(.*)\])!"
# TODO make sure simple ranges are stripped
# e.g. epubcfi(/6/4[chap01ref]!/4[body01]/10[para05],/2/1:1,/3:4)
matches_text = re.match(text_regex, curr_ref_item) matches_text = re.match(text_regex, curr_ref_item)
matches_element = re.match(element_regex, curr_ref_item) matches_element = re.match(element_regex, curr_ref_item)
matches_pointer = re.match(pointer_regex, curr_ref_item) matches_pointer = re.match(pointer_regex, curr_ref_item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment