JiLiZART / BBob

⚡️Blazing fast js bbcode parser, that transforms and parses bbcode to AST and transform it to HTML, React, Vue with plugin support in pure javascript, no dependencies
https://codepen.io/JiLiZART/full/vzMvpd
MIT License
167 stars 19 forks source link

fix: treat contextFreeTags case insensitively #230

Closed Alteras1 closed 7 months ago

Alteras1 commented 7 months ago

Addresses issue where contextFreeTags option is not treated case insensitively.

This results in odd scenarios where [code][b]hello world[/b][/code] works, but not [CODE][b]hello world[/b][/CODE] depending on the configured contextFreeTags.

Fix involves adding a toLowerCase() on each check for contextFreeTags.

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: d5372aab1bd422ecb6174ff982602301e1c5c5c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages | Name | Type | | --------------- | ----- | | @bbob/parser | Minor | | @bbob/core | Minor | | @bbob/benchmark | Patch | | @bbob/html | Minor | | @bbob/react | Minor | | @bbob/vue2 | Minor | | @bbob/vue3 | Minor | | @bbob/cli | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

JiLiZART commented 7 months ago

Thank you!