Skip to content

Commit

Permalink
js-yaml error on duplicated mapping key
Browse files Browse the repository at this point in the history
It seems js-yaml starts issuing error on duplicated mapping key since around [email protected]
nodeca/js-yaml#242

adding json option fixes by overriding duplicated mapping key as it was expected before.
  • Loading branch information
Choi KyuWoo committed Apr 17, 2016
1 parent bcf482f commit 8666288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/languages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports =
#
# Returns an {Object} mapping language name to language record.
all: (recordsPath = path.join(__dirname, '../data/languages.yml')) ->
@languages ?= Yaml.safeLoad(fs.readFileSync(recordsPath))
@languages ?= Yaml.safeLoad(fs.readFileSync(recordsPath), {json: true})

# Public: Finds the list of language candidates from the supplied extension.
#
Expand Down

0 comments on commit 8666288

Please sign in to comment.