Fix share key pattern matching

Fixes https://github.com/owncloud/core/issues/11127

But there's another failing pattern, unit test will fail.
Still looking for a solution...
Okay I see your point, will give it a try. First cut, then check the string.