Added support for custom phone patterns