aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs@pablotron.org <pabs@pablotron.org>2014-09-19 00:26:58 -0400
committerpabs@pablotron.org <pabs@pablotron.org>2014-09-19 00:26:58 -0400
commitc642b44cdd615e021db81d98629afa7a5bd68050 (patch)
treeee7c3d5fce05428f8c965d671c3a7013d19697bb
parenta6e71c57af0a784323f499b077a52dbfaddf4065 (diff)
downloadluigi-template-c642b44cdd615e021db81d98629afa7a5bd68050.tar.bz2
luigi-template-c642b44cdd615e021db81d98629afa7a5bd68050.zip
always coerce to string for FILTERS.h
-rw-r--r--luigi-template.js2
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];
});
};