File tree Expand file tree Collapse file tree 2 files changed +31
-1369
lines changed Expand file tree Collapse file tree 2 files changed +31
-1369
lines changed Original file line number Diff line number Diff line change @@ -406,19 +406,19 @@ def normalize_simapro_biosphere_names(db):
406
406
407
407
408
408
iff_exp = re .compile (
409
- "iff\(" # Starting condition, case-insensitive
410
- "\s*" # Whitespace
409
+ "iff\\ (" # Starting condition, case-insensitive
410
+ "\\ s*" # Whitespace
411
411
"(?P<condition>[^,]+)" # Anything except a comma (not sure what else could go here, so capture everything)
412
- "\s*" # Whitespace
412
+ "\\ s*" # Whitespace
413
413
"," # Comma marks the end of the conditional clause
414
- "\s*" # Whitespace
414
+ "\\ s*" # Whitespace
415
415
"(?P<when_true>[^,]+)" # Value if condition is true
416
- "\s*" # Whitespace
416
+ "\\ s*" # Whitespace
417
417
"," # Comma marks the end of the true value clause
418
- "\s*" # Whitespace
418
+ "\\ s*" # Whitespace
419
419
"(?P<when_false>[^,]+)" # Value if condition is false
420
- "\s*" # Whitespace
421
- "\)" , # End parentheses
420
+ "\\ s*" # Whitespace
421
+ "\\ )" , # End parentheses
422
422
re .IGNORECASE ,
423
423
)
424
424
You can’t perform that action at this time.
0 commit comments