minor fix in resty.core.regex.