Update update-set-implementation-lists.yml

This commit is contained in:
ExpensiveKoala 2023-06-24 01:00:11 -07:00 committed by GitHub
parent 0d7cb43590
commit ed00793fd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,9 +73,9 @@ jobs:
const implemented = [];
cards.forEach(cardData => {
const className = toCamelCase(cardData[0]);
const className = toCamelCase(cardData[0].replace(/[+]/g, ' Plus').replace(/[_]+/g, ' Blank')).replace(/[-+,'.!?`@#$%^&*()_=<>:";~\\|/\s]/g, '');
const cleanCardName = cardData[0].replace(/[-,'.!?`@#$%^&*()_=<>:";~\\|/\s]/g, '').toLowerCase();
const cardPath = path.join('Mage.Sets', 'src', 'mage', 'cards', className.substring(0, 1), `${className}.java`);
const cardPath = path.join('Mage.Sets', 'src', 'mage', 'cards', className.substring(0, 1), `${className.charAt(0).toUpperCase()+className.slice(1)}.java`);
console.log("Checking if file exists in: ",cardPath);
if (fs.existsSync(cardPath)) {
console.log("File found!");