Skip to content

Commit

Permalink
fix: add fix for #179 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed Aug 15, 2024
1 parent ab8a4be commit e8c4f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ module.exports = class Layer {

function safeDecodeURIComponent(text) {
try {
return decodeURIComponent(text);
// @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
return decodeURIComponent(text.replace(/\+/g, ' '));
} catch {
return text;
}
Expand Down

0 comments on commit e8c4f55

Please sign in to comment.