2002-01-11 Akinori Ito <aito@fw.ipsj.or.jp>
* [w3m-dev 02819] * regex.c (RegexMatch): loop condition changed (from < to <= ) * regex.c (regmatch_iter): end condition changed (from >= to >) * search.c (forwardSearch): next search fix
This commit is contained in:
6
regex.c
6
regex.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: regex.c,v 1.9 2002/01/10 16:11:32 ukai Exp $ */
|
||||
/* $Id: regex.c,v 1.10 2002/01/11 02:24:13 a-ito Exp $ */
|
||||
/*
|
||||
* regex: Regular expression pattern match library
|
||||
*
|
||||
@@ -265,7 +265,7 @@ RegexMatch(Regex *re, char *str, int len, int firstp)
|
||||
len = strlen(str);
|
||||
re->position = NULL;
|
||||
ep = str + len;
|
||||
for (p = str; p < ep; p++) {
|
||||
for (p = str; p <= ep; p++) {
|
||||
lpos = NULL;
|
||||
re->lposition = NULL;
|
||||
for (r = re; r != NULL; r = r->alt_regex) {
|
||||
@@ -554,7 +554,7 @@ regmatch_iter(struct MatchingContext1 *c,
|
||||
c->re++;
|
||||
c->firstp = 0;
|
||||
}
|
||||
if (c->str >= c->end_p) {
|
||||
if (c->str > c->end_p) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user