Browse Source

Minor fix regarding whitespace detection in GFF3 importer ID validation

Risharde Ramnath 4 years ago
parent
commit
fefe37536c
1 changed files with 1 additions and 1 deletions
  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) == ">") {