Added = and == to match for similar and exact text_only date matches
svn: r13417
This commit is contained in:
parent
6af2d2f30a
commit
c8fc4d20dd
@ -971,8 +971,10 @@ class Date(object):
|
||||
"""
|
||||
if (other_date.modifier == Date.MOD_TEXTONLY or
|
||||
self.modifier == Date.MOD_TEXTONLY):
|
||||
if comparison in ["=", "=="]:
|
||||
if comparison == "=":
|
||||
return (self.text.upper().find(other_date.text.upper()) != -1)
|
||||
elif comparison == "==":
|
||||
return self.text == other_date.text
|
||||
else:
|
||||
return False
|
||||
if (self.sortval == 0 or other_date.sortval == 0):
|
||||
|
Loading…
Reference in New Issue
Block a user