public function biblio_handler_field_contributor::get_regex_patterns in Bibliography Module 7
Same name and namespace in other branches
- 7.2 views/biblio_handler_field_contributor.inc \biblio_handler_field_contributor::get_regex_patterns()
1 call to biblio_handler_field_contributor::get_regex_patterns()
File
- views/
biblio_handler_field_contributor.inc, line 236
Class
Code
public function get_regex_patterns() {
// Checks if PCRE is compiled with UTF-8 and Unicode support.
if (!@preg_match('/\\pL/u', 'a')) {
// Probably a broken PCRE library.
return $this
->get_latin1_regex();
}
else {
// Unicode safe filter for the value.
return $this
->get_utf8_regex();
}
}