Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Add server side negation operator #214

Merged

Conversation

luisherranz
Copy link
Member

What

The server-side part of the ! operator introduced in #213.

Why

Because the server also needs to understand it.

How

Just replicate the JavaScript logic, check for the presence of ! at the start of the $path and return the opposite if it's found.

Copy link
Contributor

@SantosGuillamot SantosGuillamot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it an it works as expected. Looks good to me 🙂

@luisherranz luisherranz merged commit 12ba2f0 into main-wp-directives-plugin Apr 18, 2023
@luisherranz luisherranz deleted the add-server-side-negation-operator branch April 18, 2023 09:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants