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

Commit

Permalink
fix(ngSanitize): escape the wide char quote marks in a regex in linky.js
Browse files Browse the repository at this point in the history
Escape the wide char quote marks in a regex in linky.js

Closes #11609
  • Loading branch information
luanshixia authored and lgalfaso committed Aug 6, 2015
1 parent 4c92a3c commit 39ff333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngSanitize/filter/linky.js
Expand Up @@ -104,7 +104,7 @@
*/
angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
var LINKY_URL_REGEXP =
/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/i,
/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
MAILTO_REGEXP = /^mailto:/i;

return function(text, target) {
Expand Down

0 comments on commit 39ff333

Please sign in to comment.