1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 01:56:21 +00:00

Fix JSON file loading glitch with --options.

This commit is contained in:
hacksalot 2016-01-11 20:52:07 -05:00
parent 69be38110f
commit f965bf456a

View File

@ -24,7 +24,7 @@ Definition of the `main` function.
, StringUtils = require('../utils/string.js')
, _ = require('underscore')
, OUTPUT = require('./out')
, SAFELOAD = require('../utils/safe-json-loader')
, SAFELOADJSON = require('../utils/safe-json-loader')
, PAD = require('string-padding')
, Command = require('commander').Command;
@ -176,8 +176,9 @@ Definition of the `main` function.
//var myJSON = JSON.parse(optStr);
if( optStr[0] === '{')
oJSON = eval('(' + optStr + ')'); // jshint ignore:line
else
oJSON = SAFELOAD.loadSafeJson( optStr );
else {
oJSON = SAFELOADJSON( optStr );
}
}
}
}