eyedea-io / eyedea-io/syncano-validate
Regex rule: | -token doesn't work
Open
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Using the |-token in a regex rule breaks the rule and causes an error.
Error example:
"regex:EN|NO"
The rule is interpreted as NO being a seperate, invalid, rule
Possible fix:
Custom rule parsing, change regex parameter syntax to /[regex]/, ignore |'s between / /
e.g. "regex:/EN|NO/"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the regex rule parser and any tests for rule syntax; the issue identifies the pipe in `regex:EN|NO` as being split into a separate rule. Done means regex alternatives such as `EN|NO` are accepted without treating `NO` as an invalid rule.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- full-stack
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100