Skip to content

Commit

Permalink
(bug) encodeURI filter param is null
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed May 28, 2024
1 parent 8b1cce3 commit 6f6ea46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/frontend/src/javascript/filters/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 6f6ea46

Please sign in to comment.