We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1c838 commit 799b593Copy full SHA for 799b593
1 file changed
lib/ontologies_linked_data/models/users/user.rb
@@ -129,7 +129,7 @@ def load_created_ontologies
129
.filter("?administeredBy = <#{self.id}>")
130
acronyms = q.execute.map { |o| o.acronym.to_s }
131
return ontologies if acronyms.empty?
132
- filter_by_acronym = Goo::Filter.new(:acronym).regex(acronyms.join('|'))
+ filter_by_acronym = Goo::Filter.new(:acronym).regex("^(#{acronyms.join('|')})$")
133
ontologies = Ontology.where.include(Ontology.goo_attrs_to_load([:all])).filter(filter_by_acronym).all
134
return ontologies
135
end
0 commit comments