File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ export const DefaultWhitelist = {
55
55
/**
56
56
* A pattern that recognizes a commonly useful subset of URLs that are safe.
57
57
*
58
- * Shoutout to Angular 7 https://github.com/angular/angular/blob/7 .2.4 /packages/core/src/sanitization/url_sanitizer.ts
58
+ * Shoutout to Angular https://github.com/angular/angular/blob/12 .2.x /packages/core/src/sanitization/url_sanitizer.ts
59
59
*/
60
- const SAFE_URL_PATTERN = / ^ (?: (?: h t t p s ? | m a i l t o | f t p | t e l | f i l e ) : | [ ^ # & / : ? ] * (?: [ # / ? ] | $ ) ) / i
60
+ const SAFE_URL_PATTERN = / ^ (?: (?: h t t p s ? | m a i l t o | f t p | t e l | f i l e | s m s ) : | [ ^ # & / : ? ] * (?: [ # / ? ] | $ ) ) / i
61
61
62
62
/**
63
63
* A pattern that matches safe data URLs. Only matches image, video and audio types.
64
64
*
65
- * Shoutout to Angular 7 https://github.com/angular/angular/blob/7 .2.4 /packages/core/src/sanitization/url_sanitizer.ts
65
+ * Shoutout to Angular https://github.com/angular/angular/blob/12 .2.x /packages/core/src/sanitization/url_sanitizer.ts
66
66
*/
67
67
const DATA_URL_PATTERN = / ^ d a t a : (?: i m a g e \/ (?: b m p | g i f | j p e g | j p g | p n g | t i f f | w e b p ) | v i d e o \/ (?: m p e g | m p 4 | o g g | w e b m ) | a u d i o \/ (?: m p 3 | o g a | o g g | o p u s ) ) ; b a s e 6 4 , [ \d + / a - z ] + = * $ / i
68
68
You can’t perform that action at this time.
0 commit comments