Class ScriptSanitizer

java.lang.Object
io.deephaven.util.text.ScriptSanitizer

public class ScriptSanitizer extends Object
  • Constructor Details

    • ScriptSanitizer

      public ScriptSanitizer()
  • Method Details

    • sanitizeScriptCode

      public static String sanitizeScriptCode(String commandToSanitize)
      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