Ignore extra whitespace around tokens.
This commit is contained in:
		
							parent
							
								
									37aa237209
								
							
						
					
					
						commit
						34a9821724
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -8,7 +8,7 @@ pub fn replace_chars(input: &str) -> String { | ||||||
|         .lines() |         .lines() | ||||||
|         .filter_map(|line| { |         .filter_map(|line| { | ||||||
|             line.strip_prefix("#REPLACE") |             line.strip_prefix("#REPLACE") | ||||||
|                 .and_then(|l| l.rsplit_once(' ')) |                 .and_then(|l| l.trim().rsplit_once(' ')) | ||||||
|                 .and_then(|(first, second)| { |                 .and_then(|(first, second)| { | ||||||
|                     let length = std::cmp::min(first.len(), second.len()); |                     let length = std::cmp::min(first.len(), second.len()); | ||||||
|                     Some(Translation { |                     Some(Translation { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue