[common] Fix error when clicking on next review in mobile

This commit is contained in:
JuliaSvinareva 2021-05-12 18:59:34 +03:00
parent f221d2202e
commit ed70fe9442

View file

@ -587,7 +587,7 @@ Common.Utils.String = new (function() {
},
htmlEncode: function(string) {
return !!_ ? _.escape(string) :
return (typeof _ !== 'undefined') ? _.escape(string) :
string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
},