Skip to content

Commit 1299df7

Browse files
Refactored utility functions
1 parent 39acc86 commit 1299df7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function parse(data, path, options) {
3636
}
3737
}
3838
catch (e) {
39-
var ext = util.extname(path);
39+
var ext = util.path.extname(path);
4040
if (options.allow.unknown && ['.json', '.yaml', '.yml'].indexOf(ext) === -1) {
4141
// It's not a YAML or JSON file, and unknown formats are allowed,
4242
// so ignore the parsing error and just return the raw data

0 commit comments

Comments
 (0)