Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nesting and NOT condition support for device conditions. #103

Merged
merged 2 commits into from
Mar 28, 2022

Conversation

h2zero
Copy link
Member

@h2zero h2zero commented Mar 28, 2022

Description:

  • New private method added checkDeviceMatch
  • Conditions for device detection can now use nested JSON arrays to allow more specific evaluation.
  • Device conditions can now support a NOT operation when the condition check type "index" and a "!" is preceded before the value to test for.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

@h2zero h2zero force-pushed the check-dev-match-func branch 2 times, most recently from 91b61b9 to d32ac53 Compare March 28, 2022 02:11
* Conditions for device detection can now use nested JSON arrays to allow more specific evaluation.
* Device conditions can now support a NOT operation when the condition check type "index" and a "!" is preceded before the value to test for.
@h2zero h2zero force-pushed the check-dev-match-func branch from d32ac53 to 13a4e32 Compare March 28, 2022 02:23
@DigiH
Copy link
Member

DigiH commented Mar 28, 2022

Hi @h2zero, wasn't sure if I could just correct the typos in the file, so marked them up. Thanks for this addition, even if mainly discouraged and still possible without the bracketed nesting!

@h2zero
Copy link
Member Author

h2zero commented Mar 28, 2022

Feel free to push changes to the branch if you like. I probably shouldn't write docs after a couple wobbly pops 🙃.

@DigiH
Copy link
Member

DigiH commented Mar 28, 2022

Feel free to push changes to the branch if you like. I probably shouldn't write docs after a couple wobbly pops 🙃.

LOL ok, will do

@DigiH DigiH merged commit d5b82e6 into development Mar 28, 2022
@DigiH DigiH deleted the check-dev-match-func branch April 17, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants