* dir.c (range): Cancel change for incomplete '['. More discussion
is needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80a0920f5f
commit
f34d501658
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 8 21:09:39 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
|
* dir.c (range): Cancel change for incomplete '['. More discussion
|
||||||
|
is needed.
|
||||||
|
|
||||||
Mon Mar 8 19:35:13 2004 akira yamada <akira@arika.org>
|
Mon Mar 8 19:35:13 2004 akira yamada <akira@arika.org>
|
||||||
|
|
||||||
* lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
|
* lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
|
||||||
|
6
dir.c
6
dir.c
@ -172,12 +172,12 @@ CompareImpl(p1, p2, nocase)
|
|||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
range(
|
range(
|
||||||
const char *pattern,
|
const char *p, /* pattern */
|
||||||
const char *test,
|
const char *test,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
int not = 0, ok = 0;
|
int not = 0, ok = 0;
|
||||||
const char *p = pattern, *t1, *t2;
|
const char *t1, *t2;
|
||||||
const int nocase = flags & FNM_CASEFOLD;
|
const int nocase = flags & FNM_CASEFOLD;
|
||||||
const int escape = !(flags & FNM_NOESCAPE);
|
const int escape = !(flags & FNM_NOESCAPE);
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ range(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return *test == '[' ? pattern : 0; /* treat incompleted '[' as ordinary character */
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ISDIRSEP(c) (pathname && isdirsep(c))
|
#define ISDIRSEP(c) (pathname && isdirsep(c))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user