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

Commit

Permalink
feat($compile): support tel: links in a[href]
Browse files Browse the repository at this point in the history
Allow `tel:` links so that click-to-call works in mobile browsers
  • Loading branch information
benmccann authored and btford committed Oct 1, 2013
1 parent 8e1276c commit e773029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function $CompileProvider($provide) {
Suffix = 'Directive',
COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|file):/,
aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,
imgSrcSanitizationWhitelist = /^\s*(https?|ftp|file):|data:image\//;

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

0 comments on commit e773029

Please sign in to comment.