continue when escape
This commit is contained in:
parent
b80f90dad9
commit
20c6a84f7c
1 changed files with 1 additions and 1 deletions
|
@ -154,9 +154,9 @@ int slug_count(const char * needle, int len, char **errstr) {
|
||||||
char * p = (char*) needle;
|
char * p = (char*) needle;
|
||||||
|
|
||||||
while( (p-needle) < len) {
|
while( (p-needle) < len) {
|
||||||
|
|
||||||
if (*p == '\\' ) {
|
if (*p == '\\' ) {
|
||||||
p++; p++;
|
p++; p++;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == 1 && *p == '}') {
|
if (state == 1 && *p == '}') {
|
||||||
|
|
Loading…
Reference in a new issue