Fix type mismatch warning with Closure Compiler
This commit is contained in:
		
							parent
							
								
									767ab55060
								
							
						
					
					
						commit
						8e5c528f55
					
				
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@ -6,7 +6,7 @@ function utf8ToBinaryString(str) {
 | 
			
		||||
  // replaces any uri escape sequence, such as %0A,
 | 
			
		||||
  // with binary escape, such as 0x0A
 | 
			
		||||
  var binstr = escstr.replace(/%([0-9A-F]{2})/g, function(match, p1) {
 | 
			
		||||
    return String.fromCharCode('0x' + p1);
 | 
			
		||||
    return String.fromCharCode(parseInt(p1,16));
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  return binstr;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user