Cache regex Pattern for PatternValidator

Description

Since PatternValidator will be initialized for every related validation, it would be better for performance to cache java.util.regex.Pattern.

Environment

None

Status

Assignee

Unassigned

Reporter

Sandy Zhong

Labels

None

Worked in

None

Feedback Requested

2019/10/03

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Time tracking

1h

Priority

Minor
Configure