Skip to content

Commit 2e7959e

Browse files
Ignore blank lines when parsing HIP-RA params #8
1 parent 9e6d246 commit 2e7959e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hip-ra/hip-ra.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Density Of Water, -1`),
3939
let params = {}
4040
try {
4141
this.hipRaInputText.split('\n').forEach(it => {
42+
if (it.trim() === '') {
43+
return
44+
}
45+
4246
let kv = it.trim().split(',')
4347
let name = kv[0].trim()
4448
let value = kv[1].trim()

0 commit comments

Comments
 (0)