This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ var START_TAG_REGEXP = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:
123123 BEGING_END_TAGE_REGEXP = / ^ < \s * \/ / ,
124124 COMMENT_REGEXP = / < ! - - ( .* ?) - - > / g,
125125 CDATA_REGEXP = / < ! \[ C D A T A \[ ( .* ?) ] ] > / g,
126- URI_REGEXP = / ^ ( ( f t p | h t t p s ? ) : \/ \/ | m a i l t o : | # ) / ,
126+ URI_REGEXP = / ^ ( ( f t p | h t t p s ? ) : \/ \/ | m a i l t o : | t e l : | # ) / ,
127127 NON_ALPHANUMERIC_REGEXP = / ( [ ^ \# - ~ | | ! ] ) / g; // Match everything outside of normal chars and " (quote character)
128128
129129
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ describe('HTML', function() {
188188 expect ( html ) . toEqual ( '<div>' ) ;
189189 } ) ;
190190
191- describe ( 'explicitly dissallow ' , function ( ) {
191+ describe ( 'explicitly disallow ' , function ( ) {
192192 it ( 'should not allow attributes' , function ( ) {
193193 writer . start ( 'div' , { id :'a' , name :'a' , style :'a' } ) ;
194194 expect ( html ) . toEqual ( '<div>' ) ;
@@ -230,10 +230,11 @@ describe('HTML', function() {
230230 expect ( isUri ( 'https://abc' ) ) . toBeTruthy ( ) ;
231231 expect ( isUri ( 'ftp://abc' ) ) . toBeTruthy ( ) ;
232232 expect ( isUri ( 'mailto:me@example.com' ) ) . toBeTruthy ( ) ;
233+ expect ( isUri ( 'tel:123-123-1234' ) ) . toBeTruthy ( ) ;
233234 expect ( isUri ( '#anchor' ) ) . toBeTruthy ( ) ;
234235 } ) ;
235236
236- it ( 'should not be UIR ' , function ( ) {
237+ it ( 'should not be URI ' , function ( ) {
237238 expect ( isUri ( '' ) ) . toBeFalsy ( ) ;
238239 expect ( isUri ( 'javascript:alert' ) ) . toBeFalsy ( ) ;
239240 } ) ;
You can’t perform that action at this time.
0 commit comments