Skip to content

Commit

Permalink
Merge e99b9f4 into 40e9efc
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaGanzin committed Sep 3, 2017
2 parents 40e9efc + e99b9f4 commit b877d1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function parse (src) {

// convert Buffers before splitting into lines and processing
src.toString().split('\n').forEach(function (line) {
// ignore export statements and keys
line = line.replace(/(export|set)\s+-\w+\s*/i, '')
// matching "KEY' and 'VAL' in 'KEY=VAL'
var keyValueArr = line.match(/^\s*([\w\.\-]+)\s*=\s*(.*)?\s*$/)
// matched?
Expand Down

0 comments on commit b877d1c

Please sign in to comment.