mirror of https://github.com/gorhill/uBlock.git
code review: fixed double semi-column
This commit is contained in:
parent
554129648d
commit
f3475aedc2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue