Skip to content

Commit 99149c1

Browse files
authored
Merge pull request #78 from Chessweeper/parsing-first
Fix parsing ignoring first element
2 parents 79c9f4b + 41934d8 commit 99149c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function parseUrl(
6969
if (isNaN(Number(letter))) {
7070
// Piece found
7171
if (target !== null) {
72-
availablePieces[letter.toUpperCase()] = Infinity;
72+
availablePieces[target.toUpperCase()] = Infinity;
7373
}
7474

7575
if (validLetters.includes(letter.toUpperCase())) {

0 commit comments

Comments
 (0)