glob icon indicating copy to clipboard operation
glob copied to clipboard

Wrong token list created for "foo/**"

Open brmmm3 opened this issue 6 years ago • 1 comments

With latest version 0.3.0 I've created the following pattern:

Pattern { original: "/archiv/", tokens: [AnyRecursiveSequence, Char('a'), Char('r'), Char('c'), Char('h'), Char('i'), Char('v'), Char('/'), AnyRecursiveSequence], is_recursive: true }

As you can see the token "Char('/')" is too much and calls to matches don't work as expected.

brmmm3 avatar Jan 27 '20 06:01 brmmm3

Sorry, I mean't:

Pattern { original: "**/archiv/**", tokens: [AnyRecursiveSequence, Char('a'), Char('r'), Char('c'), Char('h'), Char('i'), Char('v'), Char('/'), AnyRecursiveSequence], is_recursive: true }

brmmm3 avatar Jan 27 '20 06:01 brmmm3