update main to v0.10.0 #48
@@ -104,15 +104,19 @@ def _normalise(s: Optional[str]) -> str:
|
|||||||
_PROJECT_LOC_SUFFIX = re.compile(
|
_PROJECT_LOC_SUFFIX = re.compile(
|
||||||
r"""
|
r"""
|
||||||
\s* # any leading whitespace
|
\s* # any leading whitespace
|
||||||
[-–—] # hyphen or em-dash (separator before the Loc marker)
|
[-–—.] # separator: hyphen, em-dash, or period
|
||||||
\s* # optional spaces
|
# (operators use any of these — see
|
||||||
|
# "Mont.Dam.Loc 2-R-25")
|
||||||
|
\s*
|
||||||
(?:loc|location) # 'Loc' or 'Location'
|
(?:loc|location) # 'Loc' or 'Location'
|
||||||
\.? # optional period
|
\.? # optional trailing period after Loc
|
||||||
\s* # optional space
|
\s*
|
||||||
|
(?:no\.?\s*)? # optional "No." or "No " before the digit
|
||||||
|
# (e.g. "Loc No. 3", "Loc No 5")
|
||||||
\#? # optional '#'
|
\#? # optional '#'
|
||||||
\s* # optional space
|
\s*
|
||||||
\d+ # required digit
|
\d+ # required digit
|
||||||
\b # word boundary
|
\b
|
||||||
""",
|
""",
|
||||||
re.IGNORECASE | re.VERBOSE,
|
re.IGNORECASE | re.VERBOSE,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user