You are here

function hackedProjectWebCVSDownloader::is_cvs_tag in Hacked! 6.2

1 call to hackedProjectWebCVSDownloader::is_cvs_tag()
hackedProjectWebCVSDownloader::download in includes/hacked_project.inc
Download the remote files to the local filesystem.

File

includes/hacked_project.inc, line 591

Class

hackedProjectWebCVSDownloader
Downloads a project using CVS.

Code

function is_cvs_tag($tag) {

  // CVS tags in Drupal are of the form:
  $valid_tags = '@^DRUPAL-[567]--(\\d+)-(\\d+)(-[A-Z0-9]+)?@';
  return (bool) preg_match($valid_tags, $tag);
}