Rubocop

do not merge yet, just source for discussion.
Um, according to the SUSE style guide, the `%r` variant should be avoided (https://github.com/SUSE/style-guides/blob/master/Ruby.md#regular-expressions).