def cookie.ip4
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
1909def cookie.ip4(s: String) -> Bool:
1910 match s:
1911 case SNil{}:
1912 True{}
1913 case SCon{Chr{+c}, t}:
1914 Bool.and(Bool.or(parse_u32.digit(c), U32.is_eq(c, 46)), cookie.ip4(t))