Package io.deephaven.util.text
Class ScriptSanitizer
java.lang.Object
io.deephaven.util.text.ScriptSanitizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
sanitizeScriptCode
(String commandToSanitize) Replaces unwanted characters like smart quotes with the standard equivalent.
-
Constructor Details
-
ScriptSanitizer
public ScriptSanitizer()
-
-
Method Details
-
sanitizeScriptCode
Replaces unwanted characters like smart quotes with the standard equivalent. Used so that copy and paste operations from tools like Outlook or Slack don't result in unusable scripts.- Parameters:
commandToSanitize
- the command to sanitize- Returns:
- the command with unwanted characters replaced with allowable characters
-