anymatch icon indicating copy to clipboard operation
anymatch copied to clipboard

:bangbang: Matches strings against configurable strings, globs, regular expressions, and/or functions

Results 8 anymatch issues
Sort by recently updated
recently updated
newest added

Matchers with an opening parenthesis do not work. ``` const anymatch = require('anymatch'); console.log(anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js')); // true console.log(anymatch('**/node_modules(/**', '/absolute/path/to/node_modules(/somelib/index.js')); // I expect true but get false. ``` The only difference...

Details: 1. Add @types/picomatch as dependency, and import {PicomatchOptions} from "picomatch". 2. Add more function signatures to separate different type of return value: when `returnIndex=true`, the return value is number,...

use case is that, first new a matcher in anymatch, 2nd use the matcher to match teststring. if teststring is path string and some path or file has dot symbol,...

I was trying to do something like this: ```typescript const processorIndex = anymatch(this.processorGlobs, relativePath, { dot: true, returnIndex: true }); ``` But I get the following error: ``` error TS2345:...

Example: ```js > const anymatch = require('anymatch'); undefined > var aaa = '/api/ad/union/sdk/get_ads/' undefined > anymatch([aaa], aaa) false > aaa = '/api/ad/union/sdk/getads/' '/api/ad/union/sdk/getads/' > anymatch([aaa], aaa) false > aaa =...

I have an API that runs in nodejs, and regexp matchers fail to run properly. I figured something is making `instanceof RegExp` to fail. If I do the following from...

I converted the project into typescript, updated dependencies and added esm module as output.