-
Notifications
You must be signed in to change notification settings - Fork 33
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
Default value support #14
Comments
It's not a feature we needed, but I can see how it'd be useful. This is an open-source project, so please feel free to issue a PR to add this, and we'll review and merge it once it's tested. Most of the magic happens in here: https://github.com/sonalake/utah-parser/blob/master/src/main/java/com/sonalake/utah/config/Config.java#L104 You'd just need to decide whether the default should be used if there's no match, or if it should also be used if the match returns an empty string. |
3Q, i will to it myself. |
Glad to help! |
I'll give this a shot. |
This will be released in version 1.1.0 |
Hello
Can < value /> element support default-value? if rule return empty string.
example:
<value id="id1" defaultValue="value1">
The text was updated successfully, but these errors were encountered: