Add alternative syntax for done_notice
This commit is contained in:
@@ -69,6 +69,7 @@ class RED_FAM_PARSER( RED_FAM ):
|
|||||||
|
|
||||||
# Textpattern for recognisation of done-notices
|
# Textpattern for recognisation of done-notices
|
||||||
__done_notice = ":<small>Archivierung dieses Abschnittes wurde gewünscht von:"
|
__done_notice = ":<small>Archivierung dieses Abschnittes wurde gewünscht von:"
|
||||||
|
__done_notice2 = "{{Erledigt|"
|
||||||
|
|
||||||
def __init__( self, red_fam_heading, red_page_id, red_page_archive, beginning, ending=None ):
|
def __init__( self, red_fam_heading, red_page_id, red_page_archive, beginning, ending=None ):
|
||||||
"""
|
"""
|
||||||
@@ -264,7 +265,7 @@ class RED_FAM_PARSER( RED_FAM ):
|
|||||||
|
|
||||||
@returns str Timestamp, otherwise None
|
@returns str Timestamp, otherwise None
|
||||||
"""
|
"""
|
||||||
if cls.__done_notice in line:
|
if ( cls.__done_notice in line ) or ( cls.__done_notice2 in line ):
|
||||||
result = cls.__timestamp_pat.search( line )
|
result = cls.__timestamp_pat.search( line )
|
||||||
if result:
|
if result:
|
||||||
return result.group()
|
return result.group()
|
||||||
|
|||||||
Reference in New Issue
Block a user