📄 Fix typos annd add to cspell settings
This commit is contained in:
parent
8779a0cf41
commit
017b5f63eb
3 changed files with 19 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.vscode
|
.vscode
|
||||||
|
!.vscode/settings.json
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
|
17
.vscode/settings.json
vendored
Normal file
17
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"cSpell.words": [
|
||||||
|
"affero",
|
||||||
|
"agpl",
|
||||||
|
"bencode",
|
||||||
|
"decryptor",
|
||||||
|
"jedipedia",
|
||||||
|
"metafile",
|
||||||
|
"networkgroupid",
|
||||||
|
"patchmanifest",
|
||||||
|
"retailclient",
|
||||||
|
"solidconfig",
|
||||||
|
"solidpkg",
|
||||||
|
"uniqueid",
|
||||||
|
"xmlns"
|
||||||
|
]
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
* A parser for .torrent files encoded with Bencode <https://en.wikipedia.org/wiki/Bencode>.
|
* A parser for .torrent files encoded with Bencode <https://en.wikipedia.org/wiki/Bencode>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Takes a Bencoded-encoded file, parses it at the given starting position and returns a JSON object, or rejects on error. */
|
/** Takes a Bencode-encoded file, parses it at the given starting position and returns a JSON object, or rejects on error. */
|
||||||
function bpParse(buffer: Buffer, posIn: number = 0): { obj: any, pos: number } {
|
function bpParse(buffer: Buffer, posIn: number = 0): { obj: any, pos: number } {
|
||||||
let pos = posIn;
|
let pos = posIn;
|
||||||
let obj: any;
|
let obj: any;
|
||||||
|
|
Loading…
Reference in a new issue