Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
GerbenAaltink committed Sep 28, 2024
1 parent 551480c commit edbe86e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ int rmatchhere(char *regexp, char *text)
{
regexp++;
int block_true = 0;
while (*regexp != ']')
do
{
if (!block_true && *regexp == *text)
block_true++;
regexp++;
}
} while((*regexp != ']'));
if (block_true)
return rmatchhere(regexp + 1, text + 1) + 1;
return rmatchhere(regexp +1 , text + 1) + 1;
}
if (regexp[0] == '$' && regexp[1] == '\0')
return *text == '\0';
Expand Down

0 comments on commit edbe86e

Please sign in to comment.