glob
glob copied to clipboard
Wrong token list created for "foo/**"
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.
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 }