UNPKG

js-search

Version:

JS Search is an efficient, client-side search library for JavaScript and JSON objects

17 lines (13 loc) 278 B
// @flow import type { ISanitizer } from './Sanitizer'; /** * Enforces case-sensitive text matches. */ export class CaseSensitiveSanitizer implements ISanitizer { /** * @inheritDocs */ sanitize(text : string) : string { return text ? text.trim() : ''; } };