-
-
Notifications
You must be signed in to change notification settings - Fork 75
MapArgument feature expansion #455
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
Conversation
DerEchtePilz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this were just points about the delimiter. To be able to submit another review (if necessary) I need to understand this first but that's on me :D
...-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgument.java
Outdated
Show resolved
Hide resolved
.../commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgumentBuilder.java
Outdated
Show resolved
Hide resolved
.../commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgumentBuilder.java
Outdated
Show resolved
Hide resolved
.../commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgumentBuilder.java
Outdated
Show resolved
Hide resolved
.../commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgumentBuilder.java
Outdated
Show resolved
Hide resolved
...-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgument.java
Outdated
Show resolved
Hide resolved
...-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgument.java
Outdated
Show resolved
Hide resolved
...-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgument.java
Outdated
Show resolved
Hide resolved
...-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/MapArgument.java
Outdated
Show resolved
Hide resolved
de51f03 to
8feac14
Compare
Reverse escape quotes at the start of unquoted strings
This case originally threw an unhelpful IndexOutOfBounds on MapArgument line 453
8feac14 to
05002bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I'm happy with the results. You're good to merge.
We need to make sure we don't forget to add a global changelog entry for this.
5402462 to
a511a96
Compare
The focus of this PR is to expand the features of the
MapArgument. These includeNevermind, not doing thatStringinstead ofchardelimiters (so long delimiters like->are possible)Stringseparators between key-value pairs (instead of just space)This also generally recodes the internals of the
MapArgumentto use Brigadier'sStringReaderand merge logic shared between key and value processing.ArgumentMapTestshad many (perhaps too many :P) tests added with the goal of 100% Jacoco coverage.