fix: default value for encodeNewline
This commit is contained in:
		
							parent
							
								
									863c622631
								
							
						
					
					
						commit
						98a8cdbc53
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -3,6 +3,7 @@ var encode = function (str, buffer, encodeNewline) { | |||
| 
 | ||||
|   if (str === null || !str.length) return str; | ||||
|   if (!buffer) buffer = []; | ||||
|   if (typeof encodeNewline === 'undefined') encodeNewline = true; | ||||
| 
 | ||||
|   for (var i = 0, len = str.length; i < len; i += 1) { | ||||
|     var char = str.charAt(i); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue