End of interger should not be necessarily a word bounday

master
Yevgen Muntyan 2006-04-27 10:26:33 -05:00
parent 9db72099fa
commit 9130329dc3
1 changed files with 5 additions and 10 deletions

View File

@ -894,16 +894,11 @@ rule_int_match (MooRule *rule,
for (i = 1; CHAR_IS_DIGIT (start[i]); ++i) ;
if (!CHAR_IS_WORD (start[i]))
{
result->match_start = start;
result->match_end = start + i;
result->match_len = i;
result->match_offset = -1;
return rule;
}
start = start + i;
result->match_start = start;
result->match_end = start + i;
result->match_len = i;
result->match_offset = -1;
return rule;
}
return NULL;