Closed nucleus-ffm closed 2 months ago
I used the chance to change the return value for an invalid phone number and email address to null
. I think this should be a cleaner approach.
Additionally, the extractPhoneNumber
has split the contact text but if I understood it correctly we always returned the first element anyways. I adjusted it to match the logic in extractWebAddress
more closely
Two further questions:
Additionally, the extractPhoneNumber has split the contact text but if I understood it correctly we always returned the first element anyways. I adjusted it to match the logic in extractWebAddress more closely
We can not do this that way. A common case is e.g. "Bürgertelefon 1234 5678" so we have to filter the "Bürgertelefon in the front to get the telephone number. I had to change that back.
In general, the contact field is in the CAP docu defined as "The text describing the contact for follow-up and confirmation of the alert message (OPTIONAL)". So, there can be anything inside that field. I also saw an alert containing a URL inside the contact field.
fix #119 and fix #120