We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc94715 commit 458e361Copy full SHA for 458e361
src/main/java/de/thetaphi/forbiddenapis/cli/CliMain.java
@@ -337,11 +337,11 @@ public void run() throws ExitException {
337
ZipEntry entry;
338
while ((entry = zipin.getNextEntry()) != null) {
339
// cleanup name in the zip file (fix trailing slash and windows separators):
340
- final String name = entry.getName().replace('\\', '/').replaceFirst("/+", "");
+ final String name = entry.getName().replace('\\', '/').replaceFirst("^/+", "");
341
next:
342
for (String ipattern : includes) {
343
if (SelectorUtils.match(ipattern, name)) {
344
- if (excludes!= null) {
+ if (excludes != null) {
345
for (String epattern : excludes) {
346
if (SelectorUtils.match(epattern, name)) {
347
break next;
0 commit comments