package yurt

  1. Overview
  2. Docs

Module Yurt_utilSource

Sourceval unwrap_option : 'a option -> 'a

Unwrap option and raise Not_found if opt is None

Sourceval unwrap_option_default : 'a option -> 'a -> 'a

Get the value of an option type or return `d`

Sourceval uuid4 : unit -> string

Generate a UUID (verison 4)

Sourceval safe_path_regexp : Str.regexp
Sourceval is_safe_path : ?prefix:string -> string -> bool

Check if a path contains '/..'

OCaml

Innovation. Community. Security.