export function _substringBefore(s: string, delimiter: string): string {
  const pos = s.indexOf(delimiter)
  return s.slice(0, pos !== -1 ? pos : undefined)
}