Skip to content

Commit

Permalink
Sanitize textObject props
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Oct 6, 2021
1 parent 310af62 commit 0837287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ local function highlight(textObject: Instance, src: string?)

textObject.RichText = false
textObject.Text = src
textObject.TextXAlignment = Enum.TextXAlignment.Left
textObject.TextYAlignment = Enum.TextYAlignment.Top
textObject.BackgroundColor3 = TokenColors.background
textObject.TextColor3 = TokenColors.iden
textObject.TextTransparency = 0.5

Expand Down

0 comments on commit 0837287

Please sign in to comment.