continue when escape

This commit is contained in:
c9s 2014-06-02 07:10:31 +08:00
parent b80f90dad9
commit 20c6a84f7c

View file

@ -154,9 +154,9 @@ int slug_count(const char * needle, int len, char **errstr) {
char * p = (char*) needle;
while( (p-needle) < len) {
if (*p == '\\' ) {
p++; p++;
continue;
}
if (state == 1 && *p == '}') {