Skip to content

Commit

Permalink
fix linux endline, v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
froquede committed Nov 6, 2020
1 parent ad5f923 commit 316a54c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtklib",
"version": "1.1.0",
"version": "1.1.1",
"description": "utility to work with RTKLIB using node.js",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions parser.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
function parseConfig(data) {
data = typeof data == 'string' ? data : data.toString()

let lines = data.split('\r')
let lines = data.split('\r').join('').split('\n')
let parsed = {}
for (let l = 0; l < lines.length; l++) {
let line = lines[l];
line = line.split('\n').join('')
let line = lines[l]
line = line.split(' ').join('')
line = line.split(' ').join('')
line = line.split('#')
Expand Down

0 comments on commit 316a54c

Please sign in to comment.