summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-01-18 17:41:37 +0100
committerportix <none@none>2013-01-18 17:41:37 +0100
commitae9c54e573d89ad78a4b189fa53492de69549e79 (patch)
tree52f18dc34c3c5e07f4fa6b1beda3b9661406c5c8 /scripts
parent06dcb414ec58dcbb02252da321f3f9d30df2d075 (diff)
downloaddwb-ae9c54e573d89ad78a4b189fa53492de69549e79.zip
Trim function body in util.getBody
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/util.js b/scripts/lib/util.js
index 9656ea22..597e1e50 100644
--- a/scripts/lib/util.js
+++ b/scripts/lib/util.js
@@ -8,7 +8,7 @@
if (f !== null && f !== undefined && f instanceof Function)
{
var m = f.toString().match(/\{([\s\S]*)\}/m)[1];
- return m.replace(/^\s*\/\/.*$/mg,'');
+ return m.replace(/^\s*\/\/.*$/mg,'').trim();
}
return null;
}