Skip to content

Commit

Permalink
fixed unescaped regex (Iltotore#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixmitX authored Feb 1, 2023
1 parent 9cd4abd commit e9e281a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Java CI

on: [push]
on:
push:
pull_request:

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static String bungeecordApi(String version) {
}

private static String getPaperGroup(String version) {
int majorVersion = Integer.parseInt(version.split(".")[1]);
int majorVersion = Integer.parseInt(version.split("\\.")[1]);
return majorVersion >= 16 ? "io.papermc.paper" : "com.destroystokyo.paper";
}

Expand Down

0 comments on commit e9e281a

Please sign in to comment.