File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
source/web/components/dashlets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 301
301
// use unassignable/non-characters unicode codepoints as markers. see unicode.org/charts/PDF/uFFF0.pdf
302
302
// These characters have been reserved for in-process usage by the unicode chart, and are guaranteed to not map
303
303
// to an actual character, in any alphabet.Therefore they won't need to be escaped throughout the string.
304
- // prespan space :
304
+ // prefix : an optional prefix before the span
305
305
String . prototype . swapHighlightMarkers = function ( prefix )
306
306
{
307
307
return this . replace ( / \uFFFE / g, ( prefix ? prefix : "" ) + "<span class='regex-highlight'>" ) . replace ( / \uFFFF / g, "</span>" ) ;
328
328
String . prototype . elideHighlightMarkers = function ( open_marker_char , close_marker_char )
329
329
{
330
330
var opened = false ; var skip_next_close_stack = [ ] ;
331
- var rebuild = "" ;
331
+ var rebuild = "" ; var c = '' ;
332
332
333
333
for ( var j = 0 ; j < this . length ; j ++ )
334
334
{
You can’t perform that action at this time.
0 commit comments