mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
Implemented control + c functionality to stop running cmds such as hack() and analyze()
This commit is contained in:
@@ -17,4 +17,9 @@ function getIndicesOf(searchStr, str, caseSensitive) {
|
||||
startIndex = index + searchStrLen;
|
||||
}
|
||||
return indices;
|
||||
}
|
||||
|
||||
//Replaces the character at an index with a new character
|
||||
String.prototype.replaceAt=function(index, character) {
|
||||
return this.substr(0, index) + character + this.substr(index+character.length);
|
||||
}
|
||||
Reference in New Issue
Block a user