Surgex v2.23.0 Surgex.Parser.StringParser

Available options:

  • trim is trimming whitespaces from the string, takes priority over min and max options
  • min is a minimal length of the string, returns :too_short error symbol
  • max is a maximal length of the string, returns :too_long error symbol

Summary

Functions

call(input, opts \\ [])
trim(input)
validate_max(input)
validate_min(input)
validate_opts!(opts)