Task: consider replacing strcmp_match with standard Lua pattern matching
- Dominant language
- JavaScript
- Stars
- 80
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
The code currently uses mod_lua:strcmp_match (mainly for matching domain strings).
This function is Apache-specific; there is a Lua emulation for use with other httpd servers such as Nginx, however it does not behave exactly the same.
Consider whether to use Lua matching instead.
Unfortunately some of the pattern strings are effectively part of the external API so this would be a breaking change.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating every use of mod_lua:strcmp_match and inventorying the pattern strings passed to it, especially those used for domain matching. Compare their current behavior with standard Lua matching and determine whether the external API can tolerate the breaking change; done means a documented compatibility decision and an agreed migration scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, lua, nginx
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100