瀏覽代碼

Update blast_ui.api.inc

Fixed issue with regex removing extension from database filename.
Lacey-Anne Sanderson 8 年之前
父節點
當前提交
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;