mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-13 10:29:43 +00:00
fixed a path bug in lite
This commit is contained in:
parent
6d9d846bdd
commit
51aa32b928
1 changed files with 2 additions and 2 deletions
|
@ -3933,10 +3933,10 @@ Current version: 138
|
|||
const twoslashes = /\/[^/]+\/[^/]*$/;
|
||||
if(window.location.protocol != 'file:' && pn!="" && pn!="/" && twoslashes.test(pn))
|
||||
{
|
||||
const segments = pathname.split('/').filter(segment => segment.length > 0);
|
||||
const segments = pn.split('/').filter(segment => segment.length > 0);
|
||||
for(let i=0;i<segments.length;++i)
|
||||
{
|
||||
if(!pathname.endsWith("/") && (i==segments.length-1))
|
||||
if(!pn.endsWith("/") && (i==segments.length-1))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue