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

Commit 39ff333

Browse files
luanshixialgalfaso
authored andcommitted
fix(ngSanitize): escape the wide char quote marks in a regex in linky.js
Escape the wide char quote marks in a regex in linky.js Closes #11609
1 parent 4c92a3c commit 39ff333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngSanitize/filter/linky.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
*/
105105
angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
106106
var LINKY_URL_REGEXP =
107-
/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/i,
107+
/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
108108
MAILTO_REGEXP = /^mailto:/i;
109109

110110
return function(text, target) {

0 commit comments

Comments
 (0)