From 85b7014b196a9d948d10486287f887542c08a3a9 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 12 Oct 2014 12:32:53 +0300 Subject: rhizhicore: fix use of mixed case in changed_nodes --- scripts/rhizicore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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}; } -- cgit v1.3.1