PipeScript icon indicating copy to clipboard operation
PipeScript copied to clipboard

`PipeScript.Module.Route` pseudotype

Open StartAutomating opened this issue 1 year ago • 0 comments

A module route describes one or more paths the module could take, based off of the url.

It is expected to be a freeform object, where any note properties (not named .*) will be treated as patterns.

Thus each Route object is really more of a "regex-based Route table".

Most of the work here is done in the methods:

  • [ ] #1027
  • [ ] #1030
  • [ ] #1028

Some formatting will be required:

  • [ ] #1031

How patterns should be treated

For the sake of sanity, all Regex should have the options IgnorePatternWhitespace (which allows comments) and IgnoreCase (which allows the most common form of typo)

For the sake of performance, all Regex should be combined into a single pattern using a lookahead and an atomic or.

For the sake of performance and security, this Regex should be given a very small timeout.

StartAutomating avatar Mar 12 '24 00:03 StartAutomating