function biblio_handler_field_contributor::get_regex_patterns in Bibliography Module 7.2
Same name and namespace in other branches
- 7 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 198
Class
Code
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();
}
}