acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
type_sanitizer.rb (201B)
1 module TypeSanitizer 2 def self.sanitize_c_identifier(unsanitized) 3 # convert filename to valid C identifier by replacing invalid chars with '_' 4 unsanitized.gsub(/[-\/\\\.\,\s]/, '_') 5 end 6 end