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

fix: prevent weird characters in date fields

This commit is contained in:
hacksalot 2018-02-04 01:13:02 -05:00
parent 00067d012a
commit 55196c2766
No known key found for this signature in database
GPG Key ID: 2F343EC247CA4B06
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ Template helper definitions for Handlebars.
helpers.type = 'handlebars';
wrappedHelpers = _.mapObject(helpers, function(hVal, hKey) {
if (_.isFunction(hVal)) {
_.wrap(hVal, function(func) {
return _.wrap(hVal, function(func) {
var args;
args = Array.prototype.slice.call(arguments);
args.shift();

View File

@ -25,7 +25,7 @@ module.exports = ( theme, opts ) ->
wrappedHelpers = _.mapObject helpers, ( hVal, hKey ) ->
if _.isFunction hVal
_.wrap hVal, (func) ->
return _.wrap hVal, (func) ->
args = Array.prototype.slice.call arguments
args.shift() # lose the 1st element (func)
args.pop() # lose the last element (the Handlebars options hash)