Project

General

Profile

« Previous | Next » 

Revision 6cc5ce07

Added by Andreas Kohlbecker about 12 years ago

fixing taxon short name function

View differences:

5.x/modules/cdm_dataportal/cdm_dataportal.module
1554 1554
     */
1555 1555
    $pattern = '/(^[a-zA-Z])([a-zA-Z]+)(\s+[^(\x2E]+\s+.+$)/';
1556 1556
    if (preg_match($pattern, $nameStr, $matches, PREG_OFFSET_CAPTURE)){
1557
      return $matches[1][0] . "." . $matches[3][0] . "\n";
1557
      return $matches[1][0] . "." . $matches[3][0];
1558 1558
    }
1559 1559
  } else {
1560 1560
    return $name->titleCache;

Also available in: Unified diff