Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Wraps lowertext() to ensure proper stringification. #2824

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1908
Original PR: tgstation/tgstation#82442

About The Pull Request

Fixes #82440

This PR just creates a new macro, LOWER_TEXT() (yes the irony is not lost on me) to wrap around all calls of lowertext() and ensure that whatever we input into that proc will be stringified using the "[]" (or tostring() for the nerds) operator. very simple.

I also added a linter to enforce this (and prevent all forms of regression) because I think that machines should do the menial work and we shouldn't expect maintainers to remember this, let me know if you disagree. if there is a time when it should be opted out for some reason, the linter does respect it if you wrap your input with the UNLINT() function.

* Wraps `lowertext()` to ensure proper stringification.

* Modular

---------

Co-authored-by: san7890 <[email protected]>
Co-authored-by: Mal <[email protected]>
@ReezeBL ReezeBL merged commit 86aa41d into master Apr 11, 2024
25 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-1908 branch April 11, 2024 09:47
Iajret pushed a commit that referenced this pull request Jun 4, 2024
* Fixes grammar in cat_house.dm (#83651)

## About The Pull Request
Capitalizes and adds a period to the inspection text of the cat house.
## Why It's Good For The Game
Grammar is good. I like grammar.
## Changelog
:cl:
spellcheck: Changed grammar in cat_house.dm
/:cl:

* Fixes grammar in cat_house.dm

---------

Co-authored-by: vendingmachine24 <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
ReezeBL pushed a commit that referenced this pull request Jun 5, 2024
* Fixes grammar in cat_house.dm (#83651)

## About The Pull Request
Capitalizes and adds a period to the inspection text of the cat house.
## Why It's Good For The Game
Grammar is good. I like grammar.
## Changelog
:cl:
spellcheck: Changed grammar in cat_house.dm
/:cl:

* Fixes grammar in cat_house.dm

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: vendingmachine24 <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants