Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
fix string splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed May 30, 2024
1 parent ec1964c commit ca0ee41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
if (path.startsWith('/')) {
path = path.substring(1);
}
const parts = path.split('/', 2);
const index = path.indexOf('/');
const parts = index !== 0 ? [path.substring(0, index), path.substring(index + 1)] : [path];
if (parts.length === 2 && parts[1] !== '') {
/* >= 1.14.4: mojmaps are used for links */
const versionSpigotMap = {
Expand Down

0 comments on commit ca0ee41

Please sign in to comment.