culturegraph/metafacture-core — pull request #88 by fsteeg (2013-06-04 09:08:27+00:00)
Title: Don't send empty matches to receiver of `regexp` morph function

The `regexp` morph function currently sends empty matches to its receiver. This yields unexpected morph results. For instance, with input like this:

``````

And calling the `regexp` function like this:

``````

We get both the expected `resource:P184000` result, and an unexpected `resource:P`, resulting in failing tests with misleading error messages. See included test for details.