Эх сурвалжийг харах

HUE-2190 [search] Truncate function doesn't work anymore

Fixed triple escaping for functions
Enrico Berti 11 жил өмнө
parent
commit
bcc1b7e9dc

+ 2 - 0
apps/search/static/js/search.utils.js

@@ -157,6 +157,8 @@ function fixTemplateDotsAndFunctionNames(template) {
       }
       }
     });
     });
     _mustacheTmpl = _mustacheTmpl.replace(/\{\{(.+?)\}\}/g, "{{{$1}}}");
     _mustacheTmpl = _mustacheTmpl.replace(/\{\{(.+?)\}\}/g, "{{{$1}}}");
+    _mustacheTmpl = _mustacheTmpl.replace(/\{\{\{\#hue_fn(.+?)\}\}\}/g, "{{#hue_fn$1}}")
+    _mustacheTmpl = _mustacheTmpl.replace(/\{\{\{\/hue_fn(.+?)\}\}\}/g, "{{/hue_fn$1}}")
   }
   }
   return _mustacheTmpl;
   return _mustacheTmpl;
 }
 }