The code uses a regex to recognize IRIs in the object position during a get. The problem is that this regex does not recognize many IRIs that it should. In particular, an IRI may have any scheme and need not have slashes right after the scheme.
For example, try using "mailto:jane@example.com" in an object and it will interpreted as the @value of an object rather than as an @id (IRI).
The code uses a regex to recognize IRIs in the object position during a
get. The problem is that this regex does not recognize many IRIs that it should. In particular, an IRI may have any scheme and need not have slashes right after the scheme.For example, try using "mailto:jane@example.com" in an object and it will interpreted as the
@valueof an object rather than as an@id(IRI).