Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8 lines
281 B
JavaScript
8 lines
281 B
JavaScript
import assertString from './util/assertString';
|
|
export default function matches(str, pattern, modifiers) {
|
|
assertString(str);
|
|
if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {
|
|
pattern = new RegExp(pattern, modifiers);
|
|
}
|
|
return !!str.match(pattern);
|
|
} |