Skip to content

Commit

Permalink
chore(docstrings): Refine get_regex_string() docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
saengel committed Jan 16, 2024
1 parent c180b5e commit bf4a082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sefaria/model/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -6100,7 +6100,7 @@ def get_multi_title_regex_string(self, titles, lang, for_js=False, anchored=Fals
# do we want to move this to the schema node? We'd still have to pass the title...
def get_regex_string(self, title, lang, for_js=False, anchored=False, capture_title=False, parentheses=False):
"""
Given a string with a Ref, it returns a regex for the Ref.
Given a book title, this function returns a regex for a Ref.
This works for references not in Sefaria format (i.e. "See Genesis 2 3" as opposed to "Genesis 2:3",
as well as for references in Sefaria format.
If the language is 'en', it calls the full_regex() function which returns the regex, whereas for 'he' we
Expand Down

0 comments on commit bf4a082

Please sign in to comment.