]> andersk Git - moira.git/commitdiff
directory_title isn't guaranteed to be uppercase anymore, so bash the
authorzacheiss <zacheiss>
Fri, 24 Sep 2004 19:05:07 +0000 (19:05 +0000)
committerzacheiss <zacheiss>
Fri, 24 Sep 2004 19:05:07 +0000 (19:05 +0000)
case of the string on our end before doing any comparisons.

regtape/staff.pc

index 558e6d27a77db6b6653955e93d9c762e7c12efd4..0667ebc0f5f9a831ba03dacbeb69308a52c45f27 100644 (file)
@@ -242,7 +242,8 @@ struct entry *get_next_entry(FILE *in)
   e.xtitle = strtrim(title);
 
   e.type = "MITS";
-  if (strstr(e.xtitle, "PROF") || strstr(e.xtitle, "LECTURE"))
+  if (strstr(uppercase(e.xtitle), "PROF") ||
+      strstr(uppercase(e.xtitle), "LECTURE"))
     e.type = "FACULTY";
   if (!strcmp(e.dept, "LINCOLN LAB"))
     e.type = "LINCOLN";
This page took 1.96421 seconds and 5 git commands to generate.