Explorar o código

Minor fix regarding whitespace detection in GFF3 importer ID validation

Risharde Ramnath %!s(int64=4) %!d(string=hai) anos
pai
achega
fefe37536c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) == ">") {