diff options
author | portix <none@none> | 2013-01-18 17:41:37 +0100 |
---|---|---|
committer | portix <none@none> | 2013-01-18 17:41:37 +0100 |
commit | ae9c54e573d89ad78a4b189fa53492de69549e79 (patch) | |
tree | 52f18dc34c3c5e07f4fa6b1beda3b9661406c5c8 /scripts | |
parent | 06dcb414ec58dcbb02252da321f3f9d30df2d075 (diff) | |
download | dwb-ae9c54e573d89ad78a4b189fa53492de69549e79.zip |
Trim function body in util.getBody
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/util.js | 2 |
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; } |