Skip to content

Added function to trim leading/trailing whitespaces#372

Merged
litelawliet merged 5 commits intoOverload-Technologies:mainfrom
litelawliet:fix/startup_scene_whitespaces_launch_crash
Feb 15, 2025
Merged

Added function to trim leading/trailing whitespaces#372
litelawliet merged 5 commits intoOverload-Technologies:mainfrom
litelawliet:fix/startup_scene_whitespaces_launch_crash

Conversation

@litelawliet
Copy link
Copy Markdown
Contributor

@litelawliet litelawliet commented Feb 14, 2025

Description

Trim static method added in OvTools::String and uses an struct TrimOptions for the trim type/direction being left or right.

Related Issues

Fixes #371.

@litelawliet litelawliet added Bug Critical Something that should be fixed quickly Crash Something that causes a crash Good First Issue An easy issue for new contributors labels Feb 14, 2025
@litelawliet litelawliet self-assigned this Feb 14, 2025
Trim static method added in OvTools::String and uses an enum for the trim type/direction. Added internal helpers to perform the leading or trailing trim.
@litelawliet litelawliet force-pushed the fix/startup_scene_whitespaces_launch_crash branch from d382fb0 to 419dfe1 Compare February 14, 2025 21:44
Comment thread Sources/Overload/OvTools/include/OvTools/Utils/String.h Outdated
Comment thread Sources/Overload/OvTools/src/OvTools/Utils/String.cpp Outdated
Comment thread Sources/Overload/OvTools/src/OvTools/Utils/String.cpp Outdated
Comment thread Sources/Overload/OvTools/src/OvTools/Utils/String.cpp Outdated
Comment thread Sources/Overload/OvTools/include/OvTools/Utils/String.h Outdated
litelawliet and others added 2 commits February 14, 2025 17:04
Co-authored-by: Adrien Givry <services@adrien-givry.com>
Co-authored-by: Adrien Givry <services@adrien-givry.com>
@litelawliet litelawliet force-pushed the fix/startup_scene_whitespaces_launch_crash branch from 3eb2992 to fd1034a Compare February 15, 2025 02:24
Copy link
Copy Markdown
Member

@adriengivry adriengivry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Approved conditionally, provided that the spaces/tabs issues are fixed. We should only be using tabs

@litelawliet litelawliet force-pushed the fix/startup_scene_whitespaces_launch_crash branch from dd45eb0 to 15e48cb Compare February 15, 2025 14:16
@litelawliet litelawliet force-pushed the fix/startup_scene_whitespaces_launch_crash branch from 15e48cb to b14d692 Compare February 15, 2025 14:18
@litelawliet litelawliet merged commit 7e5f5e4 into Overload-Technologies:main Feb 15, 2025
@litelawliet litelawliet deleted the fix/startup_scene_whitespaces_launch_crash branch February 15, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Crash Something that causes a crash Critical Something that should be fixed quickly Good First Issue An easy issue for new contributors

Development

Successfully merging this pull request may close these issues.

Whitespace in a scene name crash at launch.

2 participants