pattern(regexp: RegExp): Object
regexp: RegExp
import { x } from 'unhoax'const pattern = x.pattern(/^https?://.+/)const withUrlPattern = pattern(x.string)const url = withUrlPattern(x.string)// Schema<string> Copy
import { x } from 'unhoax'const pattern = x.pattern(/^https?://.+/)const withUrlPattern = pattern(x.string)const url = withUrlPattern(x.string)// Schema<string>
Example