mirror of
				https://github.com/Investigamer/cardconjurer.git
				synced 2025-10-25 20:30:34 -05:00 
			
		
		
		
	Don't italicize Spree modes
This commit is contained in:
		| @@ -4687,7 +4687,7 @@ function changeCardIndex() { | ||||
|  | ||||
| 	var italicExemptions = ['Boast', 'Cycling', 'Visit', 'Prize', 'I', 'II', 'III', 'IV', 'I, II', 'II, III', 'III, IV', 'I, II, III', 'II, III, IV', 'I, II, III, IV', '• Khans', '• Dragons', '• Mirran', '• Phyrexian', 'Prototype', 'Companion', 'To solve', 'Solved']; | ||||
| 	var rulesText = (cardToImport.oracle_text || '').replace(/(?:\((?:.*?)\)|[^"\n]+(?= — ))/g, function(a){ | ||||
| 	    if (italicExemptions.includes(a)) {return a;} | ||||
| 	    if (italicExemptions.includes(a) || (cardToImport.keywords.indexOf('Spree') != -1 && a.startsWith('+'))) {return a;} | ||||
| 	    return '{i}' + a + '{/i}'; | ||||
| 	}); | ||||
| 	rulesText = curlyQuotes(rulesText).replace(/{Q}/g, '{untap}').replace(/{\u221E}/g, "{inf}").replace(/• /g, '• {indent}'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh birnholz
					Josh birnholz