src/hg/encode/validateFiles/validateFiles.c 1.30

1.30 2009/12/09 19:05:28 braney
when checking fasta sequence names, stop checking at space to allow extra stuff that folks often put after the sequence name
Index: src/hg/encode/validateFiles/validateFiles.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/validateFiles/validateFiles.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -b -B -U 4 -r1.29 -r1.30
--- src/hg/encode/validateFiles/validateFiles.c	10 Nov 2009 21:52:08 -0000	1.29
+++ src/hg/encode/validateFiles/validateFiles.c	9 Dec 2009 19:05:28 -0000	1.30
@@ -319,8 +319,10 @@
     return FALSE;
     }
 for ( i = 1; s[i] ; ++i)
     {
+    if (s[i] == ' ')
+	break;
     if (!seqName[(int)s[i]])
 	{
 	warn("Error [file=%s, line=%d]: invalid %s chars in [%s]", file, line, name, s);
 	return FALSE;