0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 19:16:28 +00:00
OI-codes/AcWing/30/30.js

7 lines
128 B
JavaScript
Raw Normal View History

/**
* @param {string} s
* @param {string} p
* @return {boolean}
*/
const isMatch = (s, p) => new RegExp(`^${p}$`).test(s);