original_string: protected function __sanitizeCheckForJs($strCheck)
      {
          $strCheck = (empty($strCheck)) ? "''" : str_replace("'", "\\'", $strCheck);
          $strCheck = (mb_substr($strCheck, -1) == "u") ? mb_substr($strCheck, 0, -1) : $strCheck;
  
          return $strCheck;
      }
code: protected function __sanitizeCheckForJs($strCheck)
      {
          $strCheck = (empty($strCheck)) ? "''" : str_replace("'", "\\'", $strCheck);
          $strCheck = (mb_substr($strCheck, -1) == "u") ? mb_substr($strCheck, 0, -1) : $strCheck;
  
          return $strCheck;
      }
code_tokens: protected function __sanitizeCheckForJs ( $ strCheck ) { $ strCheck = ( empty ( $ strCheck ) ) ? "''" : str_replace ( "'" , "\\'" , $ strCheck ) ; $ strCheck = ( mb_substr ( $ strCheck , - 1 ) == "u" ) ? mb_substr ( $ strCheck , 0 , - 1 ) : $ strCheck ; return $ strCheck ; }
docstring: Sanitize a regular expression check for javascript.
  
  @param string $strCheck
  @return mixed|string
docstring_tokens: Sanitize a regular expression check for javascript .