Fix icode regex

This commit is contained in:
Jiiks 2016-12-02 11:42:54 +02:00
parent fec2679fc8
commit c14c4255eb
2 changed files with 2 additions and 2 deletions

View File

@ -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">';

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long