Fix the regex support for publish hooks

works now as expected

Signed-off-by: Karsten Keil <keil@b1-systems.de>