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

Patterns with AND of the same property not handled correctly #10

Open
rpiazza opened this issue Nov 30, 2017 · 0 comments
Open

Patterns with AND of the same property not handled correctly #10

rpiazza opened this issue Nov 30, 2017 · 0 comments
Labels

Comments

@rpiazza
Copy link
Contributor

rpiazza commented Nov 30, 2017

in idioms-json/issue-62.json there is a pattern that checks for the existence of many different keys at the same time. The slider knows how to create ANDs on the same object, but not when the property is repeated.

To do this correctly, the AND expression must be processed so in this case each term in the pattern is tested within its own Observable.

"[(windows-registry-key:key = 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders' AND windows-registry-key:key = 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders' AND windows-registry-key:key = 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Tracing' AND windows-registry-key:key = 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders' AND windows-registry-key:key = 'Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon' AND windows-registry-key:key = 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders' AND windows-registry-key:key = 'Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders' AND windows-registry-key:key = 'Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders' AND windows-registry-key:key = 'Software\\Microsoft\\windows\\CurrentVersion\\Internet Settings' AND windows-registry-key:key = 'Software\\Microsoft\\windows\\CurrentVersion\\Internet Settings\\Connections' AND windows-registry-key:key = 'HKEY_CURRENT_CONFIG\\Software\\Microsoft\\windows\\CurrentVersion\\Internet Settings' AND windows-registry-key:key = 'Software\\Microsoft\\SystemCertificates\\MY' AND windows-registry-key:key = 'HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Tcpip\\Parameters')]",

@gtback gtback added the bug label Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants