Skip to content

Commit

Permalink
Support additional columns when reading lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Coch committed Jul 27, 2017
1 parent 25414d8 commit 905aa64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CSV/Import.elm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ allModuleNames lines =
moduleNameForLine : List String -> Maybe String
moduleNameForLine columns =
case columns of
[ modulename, _, _, _, _ ] ->
modulename :: _ :: _ :: _ :: _ :: xs ->
Just modulename

_ ->
Expand All @@ -102,7 +102,7 @@ linesForModule moduleName lines =
fromLine : List String -> Maybe Localized.Element
fromLine columns =
case columns of
[ modulename, key, comment, placeholders, value ] ->
modulename :: key :: comment :: placeholders :: value :: xs ->
Just (code modulename key comment placeholders value)

_ ->
Expand Down

0 comments on commit 905aa64

Please sign in to comment.