Skip to content

Commit

Permalink
Filter all whitespace from UI weapon priority strings (#5951)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Mar 3, 2024
1 parent dec7eb4 commit 3ac1df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/WeaponPriorities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ParseTableOfCategories(inputString)
local clean = category
clean = string.gsub(clean, '{', '')
clean = string.gsub(clean, '}', '')
clean = string.gsub(clean, ' ', '')
clean = string.gsub(clean, '%s', '')
clean = string.gsub(clean, 'categories.', '')
categories[k] = clean
end
Expand Down

0 comments on commit 3ac1df5

Please sign in to comment.