Hello, and thanks to everyone for this wanderfull forum.
We are developping a zimlet in order to perform a regex match on phone numbers (not quite like the com_zimbra_phone one, but using spanish format) and, once clicked over the selected phone, automatically make a phone call using zimbra and your extension. Every thing fine so far, but the problem comes on matching phone numbers inside the address book. I can only get matches on "notes" inside contacts, but no inside anything else. I can't understand why, and I've tryed nearly everything. The most embarrasing thing is that com_zimbra_url is quite simple, and DOES recognize urls inside contacts (although not on every field).
How comes such a thing?, What do I need to know?. I'm sure my regular expression matches just what I need, but just to be sure I tried to use another one, quite simple:
<regex attrs="ig">(xpollas)</regex>
and nop: it doesn't work inside contacts either (but contact notes, offcourse). It works flawlessly everywhere but inside contacts.
I've taken a look inside a lot of other zimlets, even com_zimbra_phone, and I can't figure out what is failing on mine. I've even tryed to debug printing the line passed to the ".match(" method inside the javascript file, and the most amazing thing is that... It never prints the lines inside contacts!!!. I did the same change to com_zimbra_url... ¡and it does!
If someone could please bring some light to this matter, I would really apreciate it. Thanks in advance.
Pedro.