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