-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add support for regex OR to tree and item search #5766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for regex OR to tree and item search #5766
Conversation
|
Not necessarily a bug, but interesting how to search for terms with spaces in passive tree you need to wrap quotes around entire query. To highlight 'increased' mana but 'more' life nodes, |
|
The reason the former works is because it is simply evaluating the regex |
b5f4ad1 to
ec868d0
Compare
…nity#5766) * Add support for regex or to tree * Fix mixed white space * Add support for item search * Avoid evaluating invalid patterns * Call and catch error like with tree to avoid other pattern matching crashes. * Escape all characters expect brackets and | * cleanup variable naming and a couple of pieces of the code * Allow brackets in tree search * Add support to anoint sorting
Fixes #5221
Description of the problem being solved:
This has capture groups support.
It could likely be used to refactor ModParser(too slow https://github.com/QuickStick123/PathOfBuilding/tree/mod-parser-refactor partially working solution is like 10x slower) and applied in other places.Steps taken to verify a working solution:
Tree: "life|mana"

Uniques: "increased (fire|cold|lightning) damage"

Anoints: "critical strike (multiplier|chance)"
