Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e773029

Browse files
benmccannbtford
authored andcommitted
feat($compile): support tel: links in a[href]
Allow `tel:` links so that click-to-call works in mobile browsers
1 parent 8e1276c commit e773029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function $CompileProvider($provide) {
153153
Suffix = 'Directive',
154154
COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
155155
CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
156-
aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|file):/,
156+
aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,
157157
imgSrcSanitizationWhitelist = /^\s*(https?|ftp|file):|data:image\//;
158158

159159
// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes

0 commit comments

Comments
 (0)