Skip to content

Consider adopting a parsing library for query lines to replace hard-to-maintain regular expressions #2079

Open
@claremacrae

Description

@claremacrae

Description

Problem

We have a number of bug reports around problems interpreting complex query lines. For example:

Idea

I have been thinking for some time that as we add more features, our regular expressions are getting more complex.

And it would be worth investigating whether re-using an existing parsing solution would be more sustainable, long-term.

Options

I asked in OMG Discord - #plugin-dev on 2023-05-29, and the replies were:

Required Steps

  • Establish our requirements for parsers

  • Pick a library

    • Review the options listed above (and any more found since)
    • See how much they increase release distribution size by
    • Show what the code would look like in Tasks
  • Start migrating code, incrementally.

How to Test

Confirm that the existing Jest tests and smoke tests all work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: filtersAdditions and modifications to the search filterstype: internalOnly regards development or contributing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions