RESOLVED: op("with spaces")

op(“base1 something with spaces”)
returns an object for
op(“base1”)

imho it should return None

Hey @Achim

Thanks for the report.

I’ve logged this for a developer to look into it.

Best,
Michel

Hi Achim.
This is because both op and ops accept patterns as arguments.
And patterns may be space separated:

op(‘geo*’)
op(‘a b c[1-3]’, ‘d’, ‘e f g’, ‘h*’)
etc

In each case it will return the first operator that fits, or None.
I’ve updated the wiki with more examples.

Cheers

2 Likes

Sorry about that. Should have checked the docs