Advertisement
yojimbos_law

printing properties that are miscapitalized

Jul 7th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. //this cli command finds andd prints all properties that have been defined more than once with different capitalizations.
  2. //well, the first <=100 such properties, anyway.
  3. 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]);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement