Skip to content
Snippets Groups Projects
Commit 79bd6e77 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Remove warning since the end result is still $sanitize'd

parent da19fd0d
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,7 @@ angular.module('matrixWebClient') ...@@ -82,9 +82,7 @@ angular.module('matrixWebClient')
}; };
}]) }])
// Exactly the same as ngSanitize's linky but instead of pushing sanitized // Exactly the same as ngSanitize's linky but instead of pushing sanitized
// text in the addText function, we just push the raw text. This is ONLY SAFE // text in the addText function, we just push the raw text.
// IF THIS IS USED IN CONJUNCTION WITH NG-BIND-HTML which sweeps with $sanitize
// already.
.filter('unsanitizedLinky', ['$sanitize', function($sanitize) { .filter('unsanitizedLinky', ['$sanitize', function($sanitize) {
var LINKY_URL_REGEXP = var LINKY_URL_REGEXP =
/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/, /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment