Просмотр исходного кода

Update blast_ui.api.inc

Fixed issue with regex removing extension from database filename.
Lacey-Anne Sanderson 8 лет назад
Родитель
Сommit
6a7a064fe7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/blast_ui.api.inc

+ 1 - 1
api/blast_ui.api.inc

@@ -183,7 +183,7 @@ function run_BLAST_tripal_job($program, $query, $database, $output_filestub, $op
   $blast_threads = variable_get('blast_threads', 1);
 
   // Strip the extension off the BLAST target
-  $database = preg_replace("/(.*)\.[pn]\w\w/", '$1', $database);
+  $database = preg_replace("/(.*)\.[pn]\w\w$/", '$1', $database);
 
   // The Blast executeable.
   $program = $blast_path . $program;