[WIP] use \A and \z instead of ^ and $ in ruby regexes

see: https://www.openproject.org/issues/2575