Extra string utility expressions #1860
Labels
completed
The issue has been fully resolved and the change will be in the next Skript update.
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: lowest
"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Description
It would be good to have a few more utility string expressions and improvements to existing ones. For example, an expression which returns text with just the first character capitalized, or the first character of each word. If we want to go fully customizable, the expression(s) should be able to:
Just som general suggestions:
(upper|lower)
andcase
should be optional as both spellings are correct. We should also support an additional pattern of(upper|lower)[ ]case %string%
, and perhaps the expression could accept multiple strings. I'm sure users have previously assumed we don't have an upper/lowercase string expression because the current patterns are pretty lacking.capitalized %string%
(which again could accept multiple strings) to return the string with only the first letter capitalized like discussed above. Right now it's just an alias forin upper case
.(pascal|title) case[d] %string%
which returns the string with the first letter in each word capitalized. On my server I have this same custom expression but as(|1¦lenient) pascal cased %string%
, and if lenient (if parse mark is 1) it doesn't affect capitalization of letters other than the first ones. The same optional leniency could be applied tocapitalized
.The text was updated successfully, but these errors were encountered: