Contributing to the project, especially regexes.yaml
, is both welcomed and encouraged. To do so just do the following:
- Fork the project
- Create a branch for your changes
- Modify
regexes.yaml
as appropriate - Add relevant tests to the following files and follow their format:
tests/test_device.yaml
tests/test_os.yaml
tests/test_ua.yaml
- Check that your regex is not vulnerable to ReDoS using the test in
tests/regexes.js
- Push your branch to GitHub and submit a pull request
- Monitor the pull request to make sure the Travis build succeeds. If it fails simply make the necessary changes to your branch and push it. Travis will re-test the changes.
That's it. If you don't feel comfortable forking the project or modifying the YAML you can also submit an issue that includes the appropriate user agent string and the expected results of parsing.
Thanks!