summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-04 20:27:48 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 13:23:57 +0200
commitedc6d661d6bc6d94866f6ffba161fdec90e59f93 (patch)
tree1d583f28e3cba0cff10fddfd3973fe3ff5541df1
parent6710fb182c7725b3df824dce1fd49139b09e70a5 (diff)
actually commit links - but the ids are messed up, neo4j matches nothing and the creation fails silently
-rw-r--r--src/client/textanalysis.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/textanalysis.js b/src/client/textanalysis.js
index 56e0b602..a3e3eabd 100644
--- a/src/client/textanalysis.js
+++ b/src/client/textanalysis.js
@@ -425,8 +425,8 @@ var textAnalyser = function (newtext, finalize) {
ret.link_set_add = ret.link_set_add
.filter(function (link) {
return !finalize ||
- (ret.drop_conjugator_links &&
- (link.name.replace(/ /g,"") === "and"));
+ !ret.drop_conjugator_links ||
+ (link.name.replace(/ /g,"") !== "and");
})
.map(function (link) {
link.__src = edit_graph.find_node__by_name(link.__src) ||