summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/textanalysis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index a3694887..eb77d90f 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -19,7 +19,7 @@ function autoSuggestAddName(name)
{
/* note that name can contain spaces - this is ok. We might want to limit this though? */
if(name.split(" ").length > 1) {
- sugg['"'+newnodes[n]+'"'] = 1;
+ sugg['"' + name + '"'] = 1;
} else {
sugg[name] = 1;
}