                 return false
             }
             
+            // step back
             remainder = pattern.index(after:remainder)
 
             

                    if si == address.endIndex && remainder < pattern.endIndex {
                        return false
                    }
                } else { // skip to next comma
                    si = place
                    while pi < pattern.endIndex && pattern[pi] != "," && pattern[pi] != "}" {

// true
print(matches(address:"ablak", pattern:"a{blak,jto}"))

// false
print(matches(address:"ablak", pattern:"a{blak|jto}"))

