mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +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 () {
|
Application.Filters.filter('encodeURI', [function () {
|
||||||
return function (str) {
|
return function (str) {
|
||||||
|
if (!str) return '';
|
||||||
return str.replace(/[!'()*]/g, function (c) {
|
return str.replace(/[!'()*]/g, function (c) {
|
||||||
return '%' + c.charCodeAt(0).toString(16);
|
return '%' + c.charCodeAt(0).toString(16);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user