﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1487860	folder list - similar names wrongly highlighted	koessler	alec	"When you have folders ""a_b"" and ""a#b"" you cannot highlight the second one.

I personally fixed it by using a different ""asciiwords"" function ""extended_asciiwords()"" in program/include/main.inc"":
{{{
function extended_asciiwords($str)
{
  return preg_replace('/([^a-z0-9])/ie', 'sprintf(""_%d"", ord(""$1""))', $str);
}
... cut ...
$rcmli_folder_id = extended_asciiwords($folder['id']);
}}}
The same fix has to be applied in function get_folder_li() in program/js/app.js.src:

replaced:
{{{
      name = String(name).replace(this.identifier_expr, '_');
}}}
by:
{{{
      result = '';
      for(i = 0; i < name.length; i++)
          if(name.substr(i, 1).match(/[a-z0-9]/i))
              result += name.substr(i, 1);
          else
              result += '_' + name.charCodeAt(i);
      name = result;
}}}"	Bugs	closed	5	0.7-stable	User Interface	git-master	normal	fixed		
