We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39870f commit 48df250Copy full SHA for 48df250
1 file changed
public/js/render.js
@@ -4,7 +4,7 @@
4
var whiteListAttr = ['id', 'class', 'style']
5
window.whiteListAttr = whiteListAttr
6
// allow link starts with '.', '/' and custom protocol with '://', exclude link starts with javascript://
7
-var linkRegex = /^(?!javascript:\/\/)([\w|-]+:\/\/)|^([.|/])+/
+var linkRegex = /^(?!javascript:\/\/)([\w|-]+:\/\/)|^([.|/])+/i
8
// allow data uri, from https://gist.github.com/bgrins/6194623
9
var dataUriRegex = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*)\s*$/i
10
// custom white list
0 commit comments