def strip_dot.if
import bend-kit-dns@0.7.0.0/dns.bend as Dnsimport Base
82def strip_dot.if(+s: String, dot: Bool) -> String:
83 match dot:
84 case True{}:
85 String.reverse(String.drop(String.reverse(s), 1n))
86 case False{}:
87 s
import bend-kit-dns@0.7.0.0/dns.bend as Dnsimport Base
82def strip_dot.if(+s: String, dot: Bool) -> String:
83 match dot:
84 case True{}:
85 String.reverse(String.drop(String.reverse(s), 1n))
86 case False{}:
87 s