Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjones76 committed Feb 10, 2017
1 parent 4e9a4de commit 2efe968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Web/parse_chstr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function parse_charr(chan_in::Array{String,1}; d='.'::Char, fdsn=false::Bool)

# Initial pass to parse to string array
for i = 1:1:N
chan_line = [String(j) for j in split(chan_in[i], d, keep=true, limit=5)]
chan_line = [strip(String(j)) for j in split(chan_in[i], d, keep=true, limit=5)]
L = length(chan_line)
if L < 2
continue
Expand All @@ -23,7 +23,7 @@ function parse_chstr(chan_in::String; d=','::Char, fdsn=false::Bool)
if isfile(chan_in)
return parse_chstr(join([strip(j, ['\r','\n']) for j in filter(i -> !startswith(i, ['\#','\*']), open(readlines, chan_in))],','))
else
chan_data = [String(j) for j in split(chan_in, d)]
chan_data = [strip(String(j)) for j in split(chan_in, d)]
for j = 1:1:length(chan_data)

# Build array
Expand Down

0 comments on commit 2efe968

Please sign in to comment.