Commit e098232e authored by Jason Song's avatar Jason Song Committed by GitHub

Merge pull request #1412 from ChaochengRen/patch-2

bugfix:modify string in its iteration
parents b533fb61 fcbb6352
...@@ -144,8 +144,8 @@ function itemModalDirective(toastr, $sce, AppUtil, EventManager, ConfigService) ...@@ -144,8 +144,8 @@ function itemModalDirective(toastr, $sce, AppUtil, EventManager, ConfigService)
var hiddenCharCounter = 0, valueWithHiddenChars = value; var hiddenCharCounter = 0, valueWithHiddenChars = value;
for (var i = 0; i < valueWithHiddenChars.length; i++) { for (var i = 0; i < value.length; i++) {
var c = valueWithHiddenChars[i]; var c = value[i];
if (isHiddenChar(c)) { if (isHiddenChar(c)) {
valueWithHiddenChars = valueWithHiddenChars.replace(c, viewHiddenChar); valueWithHiddenChars = valueWithHiddenChars.replace(c, viewHiddenChar);
hiddenCharCounter++; hiddenCharCounter++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment