Fix icode regex
This commit is contained in:
parent
fec2679fc8
commit
c14c4255eb
|
@ -996,7 +996,7 @@ PublicServers.prototype.loadServers = function(dataset, search, clear) {
|
||||||
var source = hit._source;
|
var source = hit._source;
|
||||||
if(source.invite_code === undefined) return;
|
if(source.invite_code === undefined) return;
|
||||||
var icode = source.invite_code.replace(/ /g,'');
|
var icode = source.invite_code.replace(/ /g,'');
|
||||||
icode = self.escape(icode).replace(/[^a-z0-9]/g,'');
|
icode = self.escape(icode).replace(/[^A-z0-9]/g,'');
|
||||||
var html = '<div class="server-row">';
|
var html = '<div class="server-row">';
|
||||||
html += '<div class="server-icon" style="background-image:url(' + self.escape(source.icon) + ')"></div>';
|
html += '<div class="server-icon" style="background-image:url(' + self.escape(source.icon) + ')"></div>';
|
||||||
html += '<div class="server-info server-name">';
|
html += '<div class="server-info server-name">';
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue