MCPcopy Create free account
hub / github.com/chasingboy/Xtools / RemoveSpecialCharsCommand

Class RemoveSpecialCharsCommand

xtools.py:215–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214# Text Edit
215class RemoveSpecialCharsCommand(sublime_plugin.TextCommand):
216 def run(self, edit):
217 text = get_buffer_text(self.view)
218 text = re.sub(r"(\ |,|\.|\?|<|>|:|;|\"|'|{|}|\[|\]|\\|~|!|@|#|$|%|^|&|\*|\(|\)|\+|-|=|)",'&#x27;,text)
219 update_file(self.view, edit, text)
220
221
222class RemoveSpecificStringCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected