Open JounQin opened 3 years ago
const pattern: string | RegExp = 'xxx'; // source 'yyy'.match(pattern) // fixed pattern.test('yyy')