Fix rare whitespace issue
This commit is contained in:
		
							parent
							
								
									9fb888c59d
								
							
						
					
					
						commit
						75b609fac5
					
				
							
								
								
									
										10
									
								
								src/index.ts
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/index.ts
									
									
									
									
									
								
							| @ -107,7 +107,10 @@ ${this.formatPerson()} | ||||
| } | ||||
| 
 | ||||
| class Range { | ||||
| 	constructor(public date_start: Date, public date_end: Date) {} | ||||
| 	constructor( | ||||
| 		public date_start: Date, | ||||
| 		public date_end: Date | ||||
| 	) {} | ||||
| } | ||||
| 
 | ||||
| abstract class CSVParser { | ||||
| @ -142,7 +145,12 @@ class mBankParser extends CSVParser { | ||||
| 		const transactions = []; | ||||
| 		for (let i = 38; i <= last - 5; i++) { | ||||
| 			const line = lines[i]; | ||||
| 			if (line.length == 10 && line[9] == "") { | ||||
| 				line.splice(9); | ||||
| 				console.log(line); | ||||
| 			} | ||||
| 			if (line.length != 9) { | ||||
| 				console.log({ line }); | ||||
| 				throw new Error( | ||||
| 					"Wrong amount of columns! maybe a semicolon got stuck in a transaction description?" | ||||
| 				); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user