yojimbos_law icon

printing properties that are miscapitalized

yojimbos_law | PRO | 07/07/19 09:14:52 PM UTC | 0 ⭐ | 466 👁️ | Never ⏰ | []
text |

370 B

|

None

|

0 👍

/

0 👎

//this cli command finds andd prints all properties that have been defined more than once with different capitalizations.
//well, the first <=100 such properties, anyway.
ash boolean[string] boop = get_all_properties("",false); int[string] boop2; foreach i in boop{boop2[i.to_lower_case()]++;}int c; foreach i in boop2{if(boop2[i] > 1 && c++ <100 ) print( i+": "+boop2[i]);}

Comments