]> git.pond.sub.org Git - empserver/commitdiff
(sarg_type): Simplify, no functional change.
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 30 May 2005 15:06:31 +0000 (15:06 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 30 May 2005 15:06:31 +0000 (15:06 +0000)
src/lib/subs/sarg.c

index 4b8576039547d8c1a5900556765a8cf34fe08e81..cc051d92f3957b40b286bdec4d6cb698193f257f 100644 (file)
@@ -48,6 +48,7 @@
  *  #1, lx:ly,hx:hy --> NS_AREA
  *  @x,y:dist  --> NS_DIST
  *  %d or %d/%d/%d --> NS_LIST
+ *  ~ or letter --> NS_GROUP
  *  * --> NS_ALL
  *
  * or 0 for none of the above.
@@ -66,7 +67,7 @@ sarg_type(char *str)
        return NS_AREA;
     if (isdigit(c))
        return NS_LIST;
-    if (c == '~' || isupper(c) || islower(c))
+    if (c == '~' || isalpha(c))
        return NS_GROUP;
     return NS_UNDEF;
 }