1
0
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:
Du Peng 2024-05-28 11:30:43 +02:00
parent 8b1cce3a9d
commit 6f6ea460ae

View File

@ -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);
});