Olian04 / Recordari

Recordari is a type and structure validation tool for configuration files
MIT License
4 stars 0 forks source link

Redesign Regex constraint #23

Open Olian04 opened 6 years ago

Olian04 commented 6 years ago

The Test constraint should always assert true and then return the regex context again, this way multiple tests can be chained.

Current design Redesign
R.Regex.Test(str).True R.Regex.Test(str)
R.Regex.Test(str).False R.Regex.not.Test(str)
R.and([R.Regex.Test(str1).True, R.Regex.Test(str2).False]) R.Regex.Test(str1).not.Test(str2)

Pros:

Cons: