MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / remove_invalidchars

Method remove_invalidchars

utils/utils.py:121–123  ·  view source on GitHub ↗
(text:str, valid_chars:list[str])

Source from the content-addressed store, hash-verified

119
120 @staticmethod
121 def remove_invalidchars(text:str, valid_chars:list[str])->str:
122 filter_text = ''.join(c for c in text if c in valid_chars)
123 return filter_text
124
125 @staticmethod
126 def decode(text:str)->str:

Callers 1

get_structureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected