Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deverac
Copy link

@deverac deverac commented May 24, 2025

This PR enforces the character code values, ensuring that they conform to the Figlet specification.

The existing code seems to allow negative hex values (including -1), but not negative decimal or negative octal values.

This PR allows negative hex, dec, and octal values for the character code. This PR also checks to ensure the values are within the range in the Figlet specification and that the value is not -1.

Negative values are permitted.
Values are checked to ensure they are within allowable range.
@patorjk
Copy link
Owner

patorjk commented May 26, 2025

This checks out (https://github.com/patorjk/figlet.js/blob/main/doc/figfont.txt#L1069), thank you for finding this and thank you for the PR!

@patorjk patorjk merged commit 1421239 into patorjk:main May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants