Fix pattern matching error

Fix middleware regex error when modifying properties with url pattern.