-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi @nepsilon ,
Thank you for your work on this awesome package.
I'd like to report an issue I found:
Code:
const parsedParams = advancedSearchParser.parse(
`sentFrom:"Harry Potter","Hermione Granger","Ron Weasley" you are a wizard`,
{
alwaysArray: true,
keywords: ['sentFrom'],
offsets: false
}
);Reality:
{
text: ',"Hermione Granger","Ron Weasley you are a wizard',
sentFrom: [ 'Harry Potter' ],
exclude: {}
}Expectation:
{
text: 'you are a wizard',
sentFrom: [ 'Harry Potter', 'Hermione Granger', 'Ron Weasley' ],
exclude: {}
}These work-around cases work, but sometime we just cannot walk around:
sentFrom:Harry,Hermione,Ron you are a wizardsentFrom:"Harry Potter" sentFrom:"Hermione Granger" sentFrom:"Ron Weasley" you are a wizardThank you for your time.
Pranoy1c
Metadata
Metadata
Assignees
Labels
No labels