Goal: Building a workflow which starts off by stripping the "Limited", "Plc", etc. from a company name
Method: Data passed from startTrigger block is parsed using Regex and JS.
Expectation:
- "A H Worth Limited" is passed from the startTrigger block
- This is processed to strip " Limited"
- "A H Worth" is returned
Reality:
- Depending on the mood of the universe, random parts of the company name are passed from the startTrigger block, e.g. "A H Worth Limi"
- "A H Worth Limi" is passed through as is because it doesn't match the criteria