diff --git a/4-natours/after-section-13/public/js/bundle.js b/4-natours/after-section-13/public/js/bundle.js index 09bc8108c2..2cf32b8415 100644 --- a/4-natours/after-section-13/public/js/bundle.js +++ b/4-natours/after-section-13/public/js/bundle.js @@ -6796,7 +6796,7 @@ function isURLSearchParams(val) { * @returns {String} The String freed of excess whitespace */ function trim(str) { - return str.replace(/^\s*/, '').replace(/\s*$/, ''); + return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); } /**