We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!
1 parent 7e47698 commit 35844bbCopy full SHA for 35844bb
src/main/java/net/minecraftforge/gitver/internal/GitVersionImpl.java
@@ -130,8 +130,12 @@ private Info calculateInfo(CommitCountProvider commitCountProvider) {
130
else
131
it.setExclude("*-*");
132
133
- for (String filter : this.filters)
134
- it.setMatch(filter);
+ for (String filter : this.filters) {
+ if (filter.startsWith("!"))
135
+ it.setExclude(filter.substring(1));
136
+ else
137
+ it.setMatch(filter);
138
+ }
139
} catch (Exception e) {
140
Util.sneak(e);
141
}
0 commit comments