Thanks Alex,
You are right! After I  wrote the search and add functions, I did end up
copy pasting your search function solution. I wasn't sure what it was
really doing, so it  was hard to write a method for it. But after looking
at your solution, it still wasn't clear.  That is why I wanted to talk to
you on Monday for more explanation.
I even copied your comments, so it wasn't cheating!
Best, Sylvie


On Wed, Mar 19, 2014 at 2:06 PM, Alex Notov <notifications@github.com>wrote:

> In suffix_tree.js:
>
> > @@ -63,6 +61,48 @@ SuffixTree = (function() {
> >    //
> >    //  an edge is a key of the node
> >    SuffixTree.prototype.search = function(query) {
> > +    query = query.remove(SuffixTree.delimiter);
>
> Did you take my code from the
> https://github.com/wdi-sf-jan-2014/code_base_search/tree/learn branch and
> just add it here? [image: :-1:], if so.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/wdi-sf-jan-2014/code_base_search/pull/1/files#r10771576>
> .
>