diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-14 22:01:02 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-14 22:01:02 -0700 |
commit | bceef58584a5753482412e7029f59710afe94a20 (patch) | |
tree | 90e6d35708946a3154a18c2b91b6210b8c8202e9 /library/sprintf.js/src/angular-sprintf.js | |
parent | 47564d4310da9a494cafcaba2741d6974dfcb9ce (diff) | |
parent | d5803cfd0221cccc2456d72f15f39cf4f891a1da (diff) | |
download | volse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.tar.gz volse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.tar.bz2 volse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'library/sprintf.js/src/angular-sprintf.js')
-rw-r--r-- | library/sprintf.js/src/angular-sprintf.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/library/sprintf.js/src/angular-sprintf.js b/library/sprintf.js/src/angular-sprintf.js new file mode 100644 index 000000000..9c69123be --- /dev/null +++ b/library/sprintf.js/src/angular-sprintf.js @@ -0,0 +1,18 @@ +angular. + module("sprintf", []). + filter("sprintf", function() { + return function() { + return sprintf.apply(null, arguments) + } + }). + filter("fmt", ["$filter", function($filter) { + return $filter("sprintf") + }]). + filter("vsprintf", function() { + return function(format, argv) { + return vsprintf(format, argv) + } + }). + filter("vfmt", ["$filter", function($filter) { + return $filter("vsprintf") + }]) |