Solved Stripping non-approved Color Codes

Discussion in 'Spigot Plugin Development' started by WAS, May 4, 2017.

  1. WAS

    WAS

    What would be the most efficient method for comparing a string against approved color code alternatives and if they are not present, remove them? I'm hoping there is a fast solution that doesn't involve Regex.
     
  2. String#replace(colorCode, "")??
     
    • Funny Funny x 1
  3. WAS

    WAS

    Oh jesus christ! Lol I'm so sick. I should probably just go lie down for a bit...
     
  4. .... ?
     
  5. WAS

    WAS

    It's so obvious?