-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
figure out more categories of jargon
- Loading branch information
Showing
5 changed files
with
91 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
import * as cards from '../dist/cards.json'; | ||
|
||
const cardId = process.argv[2]; | ||
|
||
(cards as any[]).forEach(card => { | ||
if(card.code !== cardId && !card.name.toLowerCase().includes(cardId.toLowerCase())) return; | ||
|
||
console.log(card); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
export function consistentizeText(text: string) { | ||
return text | ||
.split('0').join('zero') | ||
.split('1').join('one') | ||
.split('2').join('two') | ||
.split('3').join('three') | ||
.split('4').join('four') | ||
.split('zone').join('area') | ||
.split('library').join('deck') | ||
; | ||
} |