Skip to content

Conversation

@Andre601
Copy link
Collaborator

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

There seems to be an issue with PAPI lowercasing text when it contains % which triggers the CharReplacer and results in it returning a lowercase text for when the Placeholder Pattern isn't matched.

See these lines:

final String identifierString = identifier.toString().toLowerCase();
final String parametersString = parameters.toString();
identifier.setLength(0);
parameters.setLength(0);
if (oopsitsbad) {
builder.append(closure.head).append(identifierString);

Closes #666

@Andre601 Andre601 added the Type: Enhancement New feature or request label Aug 8, 2021
@Andre601 Andre601 added Type: Bugfix This fixes an existing bug in PlaceholderAPI. and removed Type: Enhancement New feature or request labels Oct 9, 2021
@matthewchoiyiuhei
Copy link

Please merge this, it means a lot to us. Thank you so much!

@PiggyPiglet PiggyPiglet changed the title Fix issue with invalid placeholder pattern lowecasing text Fix issue with invalid placeholder pattern lowercasing text Dec 13, 2021
@PiggyPiglet PiggyPiglet merged commit e3602e5 into development Dec 13, 2021
@PiggyPiglet PiggyPiglet deleted the fix/666-lowercase-issues branch December 13, 2021 07:03
@Andre601 Andre601 mentioned this pull request Dec 16, 2021
4 tasks
darbyjack pushed a commit that referenced this pull request Dec 20, 2021
Fix issue with invalid placeholder pattern lowercasing text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bugfix This fixes an existing bug in PlaceholderAPI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants