summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-12 12:32:53 +0300
committerAlon Levy <alon@pobox.com>2014-10-12 12:32:53 +0300
commit85b7014b196a9d948d10486287f887542c08a3a9 (patch)
tree3fc0afd45da571d048e9eea2191c7f3985de09f5
parentd578784aa0631adf228052742eaf64ff037363a8 (diff)
rhizhicore: fix use of mixed case in changed_nodes
-rw-r--r--scripts/rhizicore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 2402382d..c2ce76ac 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -220,8 +220,8 @@ function myGraph(el) {
set_from_array(new_nodes));
// we allow any number of changed nodes as long as we it is 1 or 2 :)
if (changed_nodes.a_b.length <= 2) {
- set_old_id = set_from_array(changed_nodes.a_b);
- set_new_id = set_from_array(changed_nodes.b_a);
+ set_old_id = set_from_array(changed_nodes.a_b.map(function (f) { return f.toLowerCase(); }));
+ set_new_id = set_from_array(changed_nodes.b_a.map(function (f) { return f.toLowerCase(); }));
} else {
return {graph_same: false};
}