Updated link standardisation to remove everything after ampersand
This commit is contained in:
parent
77514b08ba
commit
11715d0a3b
|
@ -121,8 +121,8 @@ var YouTube = {
|
||||||
|
|
||||||
var Links = {
|
var Links = {
|
||||||
standardise: function (link) {
|
standardise: function (link) {
|
||||||
//cheaty way to get around http and https not matching
|
//cheaty way to get around http and https not matching, and quick way to chop off stuff like &feature=youtube etc
|
||||||
return link.replace("https://", "http://");
|
return link.replace("https://", "http://").split("&")[0];
|
||||||
},
|
},
|
||||||
messageContainsLink: function (message) {
|
messageContainsLink: function (message) {
|
||||||
var messageLower = message.toLowerCase();
|
var messageLower = message.toLowerCase();
|
||||||
|
|
Loading…
Reference in a new issue