CGIV-2481 allow custom pattern