minor bug fix in stri_detect_regex