remove dead code

This commit is contained in:
Devin Howard 2016-10-24 10:58:05 +08:00
parent ad5200a62b
commit 7b67066f7d

View file

@ -116,14 +116,6 @@ const Util = {
return rgb return rgb
}, },
checkURLisImage: function (url) {
// when the page reloads the following regular expression will be screwed up
// please replace it with this one before you save: /*backslashhere*.(jpeg|jpg|gif|png)$/
return (url.match(/\.(jpeg|jpg|gif|png)$/) != null)
},
checkURLisYoutubeVideo: function (url) {
return (url.match(/^https?:\/\/(?:www\.)?youtube.com\/watch\?(?=[^?]*v=\w+)(?:[^\s?]+)?$/) != null)
},
openLink: function(url){ openLink: function(url){
var win = (url !== "") ? window.open(url, '_blank') : "empty"; var win = (url !== "") ? window.open(url, '_blank') : "empty";