You will see false, because the / at the end is missing. It seems like isSource does an exact string match, when the thing that's important is the dat hash.
A little thing, but it was throwing me off for a bit :)
Any thoughts? It's simple enough, I might make another PR for this unless you have any objections...
When indexing DBs, if you do:
You will see
["dat://232ac2ce8ad4ed80bd1b6de4cbea7d7b0cad1441fa62312c57a6088394717e41"]
in your console (note, no trailing/
).If you do this:
You will see
false
, because the/
at the end is missing. It seems likeisSource
does an exact string match, when the thing that's important is the dat hash.A little thing, but it was throwing me off for a bit :)
Any thoughts? It's simple enough, I might make another PR for this unless you have any objections...