3

I am using autolink="phone", but however, I have tried to link it with 3 digits (for e.g. 911, for emergency calls), but it doesn't work. Is there a minimum amount of digit before it can link to the dialer? Or is there any quick alternative out there that I can link the emergency number to the dialer?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Winona
  • 2,950
  • 2
  • 21
  • 29

1 Answers1

1

This link kind of answers another question, but might solve your problem. Check out "LinkifyPhone". Make a special note of the PHONE_NUMBER_MINIMUM_DIGITS = 5 variable.

Another, more direct, solution would be to set autolink to "all", and then have some own regex-method.

keyser
  • 18,829
  • 16
  • 59
  • 101