new full
This commit is contained in:
@@ -25,7 +25,7 @@ class IBANRefiner(EntityRefiner):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__("IBAN")
|
||||
self.iban_regex = re.compile(r"\b[A-Z]{2}[0-9]{2}(?:\s[0-9]{4}){3}\b", re.IGNORECASE)
|
||||
self.iban_regex = re.compile(r"\b[A-Z]{2}[0-9]{2}\s?(?:[A-Z0-9]{4}\s?){2,7}[A-Z0-9]{1,4}\b", re.IGNORECASE)
|
||||
|
||||
def refine(self, text: str, start: int, end: int) -> Optional[Tuple[int, int]]:
|
||||
ent_text = text[start:end].strip()
|
||||
|
||||
Reference in New Issue
Block a user