View as Markdown

API reference: @salmonui/data-grid/engine

compilePatternfunction

import { compilePattern } from '@salmonui/data-grid/engine';
function compilePattern(pattern: string, operator: 'like' | 'wildcard'): RegExp;

Compiles like (% / * = any sequence) or wildcard (* = any sequence, ? = one character) into an anchored RegExp.