summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/textanalysis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index f8522887..c1b02b38 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -76,7 +76,7 @@ var textAnalyser2 = function (newtext, finalize) {
ret.nodes.push({'id':id, 'type':type, 'state':state});
}
function addLink(src, dst, name, state) {
- ret.links.push({'sourceId':src, 'targetId':dst, 'name':name, 'state':state});
+ ret.links.push({'sourceId':src, 'targetId':dst, 'name':name ? name.trim() : "", 'state':state});
}
//Sentence Sequencing