diff options
author | pabs@pablotron.org <pabs@pablotron.org> | 2014-09-19 00:26:58 -0400 |
---|---|---|
committer | pabs@pablotron.org <pabs@pablotron.org> | 2014-09-19 00:26:58 -0400 |
commit | c642b44cdd615e021db81d98629afa7a5bd68050 (patch) | |
tree | ee7c3d5fce05428f8c965d671c3a7013d19697bb /luigi-template.js | |
parent | a6e71c57af0a784323f499b077a52dbfaddf4065 (diff) | |
download | luigi-template-c642b44cdd615e021db81d98629afa7a5bd68050.tar.bz2 luigi-template-c642b44cdd615e021db81d98629afa7a5bd68050.zip |
always coerce to string for FILTERS.h
Diffstat (limited to 'luigi-template.js')
-rw-r--r-- | luigi-template.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luigi-template.js b/luigi-template.js index 439bbbe..cb67ebf 100644 --- a/luigi-template.js +++ b/luigi-template.js @@ -113,7 +113,7 @@ LuigiTemplate = (function() { if (v === undefined || v === null) return ''; - return (v || '').replace(/(['"<>&])/g, function(s) { + return v.toString().replace(/(['"<>&])/g, function(s) { return LUT[s]; }); }; |