commit | 9e3accb4b5824bdb102802de7211c247cfdadb18 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jeff@thefirst.org> | Sun Nov 25 09:25:27 2012 -0800 |
committer | Jeff Thompson <jeff@thefirst.org> | Sun Nov 25 09:25:27 2012 -0800 |
tree | 68e15e3c105b3ab44600ac7945daf9132578b339 | |
parent | 3cbf746cd62519098b26cb6432260ea43f91cc63 [diff] [blame] |
Fix bug in createNameArray when skipping a component: need to continue.
diff --git a/js/Name.js b/js/Name.js index 1f1f843..b8a484a 100644 --- a/js/Name.js +++ b/js/Name.js
@@ -75,8 +75,9 @@ // Zero, one or two periods is illegal. Ignore this componenent to be // consistent with the C implmentation. // This also gets rid of a trailing '/'. - array = array.slice(0, i).concat(array.slice(i + 1, array.length)); - --i; + array.splice(i, 1); + --i; + continue; } else // Remove 3 periods.