Skip to content

Commit

Permalink
Merge pull request #32 from paa-milesokeefe/patch-1
Browse files Browse the repository at this point in the history
Rename variable to fix conflicting fs name
  • Loading branch information
hitgeek authored Dec 21, 2018
2 parents 624595e + 0aa704f commit aba0c1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hl7/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ parser.prototype.parseField = function(s) {
var f = new field();

if (s.indexOf(this.delimiters.repititionCharacter) != -1) {
var fs = s.split(this.delimiters.repititionCharacter);
for (var i = 0; i < fs.length; i++) {
f.value.push(this.parseField(fs[i]));
var _fs = s.split(this.delimiters.repititionCharacter);
for (var i = 0; i < _fs.length; i++) {
f.value.push(this.parseField(_fs[i]));
}
} else {
var components = s.split(this.delimiters.componentSeperator);
Expand Down

0 comments on commit aba0c1d

Please sign in to comment.