未验证 提交 fcbb6352 编写于 作者: R R 提交者: GitHub

bugfix:modify string in its iteration

上级 b533fb61
......@@ -144,8 +144,8 @@ function itemModalDirective(toastr, $sce, AppUtil, EventManager, ConfigService)
var hiddenCharCounter = 0, valueWithHiddenChars = value;
for (var i = 0; i < valueWithHiddenChars.length; i++) {
var c = valueWithHiddenChars[i];
for (var i = 0; i < value.length; i++) {
var c = value[i];
if (isHiddenChar(c)) {
valueWithHiddenChars = valueWithHiddenChars.replace(c, viewHiddenChar);
hiddenCharCounter++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册