mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 21:16:27 +00:00
7 lines
128 B
JavaScript
7 lines
128 B
JavaScript
/**
|
|
* @param {string} s
|
|
* @param {string} p
|
|
* @return {boolean}
|
|
*/
|
|
const isMatch = (s, p) => new RegExp(`^${p}$`).test(s);
|