You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scan method returns different parts depending on options.
When the parts option is passed, then */c will be represented as two parts of the pattern (['*', 'c']).
When the tokens option is passed, the */c will be represented as one part of the pattern (['*/c']).
The documentation says that the tokens option automatically enables the parts option. Based on this, i expect the behavior to be same when I pass the parts option manually.
parts
This is automatically enabled when options.tokens is true.
Description
The
scan
method returns differentparts
depending on options.parts
option is passed, then*/c
will be represented as two parts of the pattern (['*', 'c']
).tokens
option is passed, the*/c
will be represented as one part of the pattern (['*/c']
).The documentation says that the
tokens
option automatically enables theparts
option. Based on this, i expect the behavior to be same when I pass theparts
option manually.Code
The text was updated successfully, but these errors were encountered: