(functionOrValue)
| 3 | import { unpluginPureFactory } from 'unplugin-pure' |
| 4 | |
| 5 | const toFunction = (functionOrValue) => { |
| 6 | if (typeof functionOrValue === 'function') return functionOrValue |
| 7 | return () => functionOrValue |
| 8 | } |
| 9 | |
| 10 | const escape = (str) => str.replace(/[-[\]/{}()*+?.\\^$|]/g, '\\$&') |
| 11 |