module Amber::Schema::PatternEngine

Overview

Runs the string patterns a schema declares with pattern:, filename_pattern: or a custom format:.

The field macro calls .use_regex for a field that declares one, so only those applications compile Regex and link a regex engine.

Defined in:

amber/schema/pattern_engine.cr

Class Method Summary

Class Method Detail

def self.matches?(pattern : String, text : String) : Bool #

[View source]
def self.use_regex : Nil #

[View source]