picomatch
picomatch copied to clipboard
set value of option noextglob can not work in the below cases
picomatch = require('picomatch')
picomatch.isMatch('a.j.js', '*.*(j).js', { noextglob: true })
=> true
picomatch.isMatch('a.j.js', '*.*(j).js', { noextglob: false})
=> true
picomatch = require('picomatch')
picomatch.isMatch('z', '*(z)', { noextglob: true })
=> true
picomatch.isMatch('z', '*(z)', { noextglob: false})
=> true
picomatch = require('picomatch')
picomatch.isMatch('a.ajj.js', '*.a*(j).js', { noextglob: true})
=>true
picomatch.isMatch('a.ajj.js', '*.a*(j).js', { noextglob: false})
=>true
As I were looking at the implementation of extglob module in file name matching in Ruby, seem like it only implements the pattern "{a,b}" . In Python, it sounds that it does not have it so far, but the function of fnmatch support [seq] and [!seq] as the input of name pattern. I means that why all of implementations in term of this module, they are such different.