mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
(bug) encodeURI filter param is null
This commit is contained in:
parent
8b1cce3a9d
commit
6f6ea460ae
@ -370,6 +370,7 @@ Application.Filters.filter('currency', [function ($locale) {
|
||||
|
||||
Application.Filters.filter('encodeURI', [function () {
|
||||
return function (str) {
|
||||
if (!str) return '';
|
||||
return str.replace(/[!'()*]/g, function (c) {
|
||||
return '%' + c.charCodeAt(0).toString(16);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user