Kazetsukai / onetech

Automated Crafting Guide for One Hour One Life
MIT License
31 stars 24 forks source link

Handle different EOL formats when loading data #190

Open Cogito opened 4 years ago

Cogito commented 4 years ago

When cloning the data files with git the line endings can be changed depending on git autocrlf settings. If there are any carriage returns the parsing fails, so we need to either avoid them or strip them. This change, stripping the carriage returns in addition to the line feeds, is the simplest and has the benefit of also handling any future situation where carriage returns are added to the source files.