📄 Fix typos annd add to cspell settings

This commit is contained in:
C-3PO 2018-11-02 00:54:12 +01:00
parent 8779a0cf41
commit 017b5f63eb
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
3 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.vscode .vscode
!.vscode/settings.json
dist dist
node_modules node_modules

17
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,17 @@
{
"cSpell.words": [
"affero",
"agpl",
"bencode",
"decryptor",
"jedipedia",
"metafile",
"networkgroupid",
"patchmanifest",
"retailclient",
"solidconfig",
"solidpkg",
"uniqueid",
"xmlns"
]
}

View file

@ -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;