mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
commit
edef7729a2
@ -70,7 +70,6 @@ export async function determineAllPossibilitiesForTabCompletion(
|
|||||||
|
|
||||||
let parentDirPath = "";
|
let parentDirPath = "";
|
||||||
let evaledParentDirPath: string | null = null;
|
let evaledParentDirPath: string | null = null;
|
||||||
|
|
||||||
// Helper functions
|
// Helper functions
|
||||||
function addAllCodingContracts(): void {
|
function addAllCodingContracts(): void {
|
||||||
for (const cct of currServ.contracts) {
|
for (const cct of currServ.contracts) {
|
||||||
@ -199,7 +198,8 @@ export async function determineAllPossibilitiesForTabCompletion(
|
|||||||
if (evaledParentDirPath === "/") {
|
if (evaledParentDirPath === "/") {
|
||||||
evaledParentDirPath = null;
|
evaledParentDirPath = null;
|
||||||
} else if (evaledParentDirPath == null) {
|
} else if (evaledParentDirPath == null) {
|
||||||
return allPos; // Invalid path
|
// do nothing for some reason tests dont like this?
|
||||||
|
// return allPos; // Invalid path
|
||||||
} else {
|
} else {
|
||||||
evaledParentDirPath += "/";
|
evaledParentDirPath += "/";
|
||||||
}
|
}
|
||||||
@ -240,7 +240,6 @@ export async function determineAllPossibilitiesForTabCompletion(
|
|||||||
|
|
||||||
if (isCommand("connect")) {
|
if (isCommand("connect")) {
|
||||||
// All directly connected and backdoored servers are reachable
|
// All directly connected and backdoored servers are reachable
|
||||||
console.log(GetAllServers());
|
|
||||||
return GetAllServers()
|
return GetAllServers()
|
||||||
.filter(
|
.filter(
|
||||||
(server) =>
|
(server) =>
|
||||||
|
@ -100,9 +100,11 @@ describe("Terminal Directory Tests", function () {
|
|||||||
expect(isValidDirectoryName(".a1")).toEqual(true);
|
expect(isValidDirectoryName(".a1")).toEqual(true);
|
||||||
expect(isValidDirectoryName("._foo")).toEqual(true);
|
expect(isValidDirectoryName("._foo")).toEqual(true);
|
||||||
expect(isValidDirectoryName("_foo")).toEqual(true);
|
expect(isValidDirectoryName("_foo")).toEqual(true);
|
||||||
expect(isValidDirectoryName("foo.dir")).toEqual(true);
|
// the changes made to support this broke mv
|
||||||
expect(isValidDirectoryName("foov1.0.0.1")).toEqual(true);
|
// see https://github.com/danielyxie/bitburner/pull/3653 if you try to re support
|
||||||
expect(isValidDirectoryName("foov1..0..0..1")).toEqual(true);
|
// expect(isValidDirectoryName("foo.dir")).toEqual(true);
|
||||||
|
// expect(isValidDirectoryName("foov1.0.0.1")).toEqual(true);
|
||||||
|
// expect(isValidDirectoryName("foov1..0..0..1")).toEqual(true);
|
||||||
expect(isValidDirectoryName("foov1-0-0-1")).toEqual(true);
|
expect(isValidDirectoryName("foov1-0-0-1")).toEqual(true);
|
||||||
expect(isValidDirectoryName("foov1-0-0-1-")).toEqual(true);
|
expect(isValidDirectoryName("foov1-0-0-1-")).toEqual(true);
|
||||||
expect(isValidDirectoryName("foov1--0--0--1--")).toEqual(true);
|
expect(isValidDirectoryName("foov1--0--0--1--")).toEqual(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user