improvement done while working with the software.

This commit is contained in:
didier.amyot committed 2014-05-09 10:57:07 -04:00
1 parent 96ed18787a
commit 741ec3f40c
4 files changed
+21 -13

No files matched your search

+6 -2
View File
@@ -6,8 +6,12 @@ root.filters.filter 'escape', () ->
root.filters.filter 'replaceAllCommasBySpaces', () ->
return (text) ->
return text.replace(new RegExp(",","g"), " ")
return text.replace(new RegExp(",","g"), " ")
root.filters.filter 'niceJSON', () ->
return (obj) ->
return JSON.stringify(obj, null, 4);
return JSON.stringify(obj, null, 4);
root.filters.filter 'replaceReturnByBreak', () ->
return (text) ->
return text.replace(new RegExp("\n","g"), "<br>")