Skip to content

[ENHANCEMENT] Add isBlank to StringTools for easier empty string checking.#6910

Open
Starexify wants to merge 1 commit intoFunkinCrew:developfrom
Starexify:string-isempty
Open

[ENHANCEMENT] Add isBlank to StringTools for easier empty string checking.#6910
Starexify wants to merge 1 commit intoFunkinCrew:developfrom
Starexify:string-isempty

Conversation

@Starexify
Copy link
Contributor

Description

This PR adds a new utility method in StringTools called isBlank, which makes it easier to check if a string is blank or not.

This will return for the following cases true:

String Result
null true
'' true
' ' true
' ' true
'\n' true
'\t' true
'\r' true
' test ' false
anything else false

@github-actions github-actions bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. labels Feb 10, 2026
@Hundrec Hundrec added type: enhancement Involves an enhancement or new feature. topic: mods Related to the creation or use of mods. labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. topic: mods Related to the creation or use of mods. type: enhancement Involves an enhancement or new feature.

Development

Successfully merging this pull request may close these issues.

2 participants