too tight constraint that has no use in private function

Fixes issue 1262
Merge pull request #1641 from blackwhale/ctr-replace

[REG 2.064a] 11262 std.regex.replace does not accept StaticRegex