1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

code review: fixed double semi-column

This commit is contained in:
gorhill 2015-01-16 18:08:40 -05:00
parent 554129648d
commit f3475aedc2

View File

@ -217,7 +217,7 @@ var toUrlKey = function(url) {
var extractMimeType = function(ctin) {
var pos = ctin.indexOf(';');
var type = pos === -1 ? ctin.trim() : ctin.slice(0, pos).trim();
var charset = pos === -1 ? '' : ctin.slice(pos).trim();
var charset = pos === -1 ? '' : ctin.slice(pos + 1).trim();
if ( charset !== '' ) {
return type + ';' + charset;
}