浏览代码

Minor fix regarding whitespace detection in GFF3 importer ID validation

Risharde Ramnath 4 年之前
父节点
当前提交
fefe37536c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tripal_chado/includes/TripalImporter/GFF3Importer.inc

+ 1 - 1
tripal_chado/includes/TripalImporter/GFF3Importer.inc

@@ -2765,7 +2765,7 @@ class GFF3Importer extends TripalImporter {
     }
     else {
       $uniquename = $attrs['ID'][0];
-      if(preg_match('[\\][\s]', $uniquename) == 0 && preg_match('[\s]', $uniquename) == 1) {
+      if(preg_match('[\s]', $uniquename) == 1) {
         throw new Exception(t("ID !uniquename has one or more unescaped whitespaces", ['!uniquename' => $uniquename]));
       }
       if(substr($uniquename, 0, 1) == ">") {