Closed Mara-Li closed 6 months ago
The recent updates focus on enhancing code maintainability and functionality through the introduction of more abstracted methods and constants. These changes streamline the process of matching and replacing text, transforming links, and adjusting UI elements. By centralizing regex operations and link transformation settings, the codebase becomes easier to manage and more adaptable to future requirements.
File Path | Change Summary |
---|---|
src/conversion/... |
Replaced direct regex with createRegexFromText function calls for better maintainability. |
src/conversion/find_and_replace_text.ts |
Utilized FIND_REGEX from ../settings/interface instead of direct regex in match() condition. |
src/settings.ts |
Added settings for link transformation options in the plugin settings page. |
src/settings/interface.ts |
Added transform property to GitHubPublisherSettings interface for link transformation settings. |
src/styles.css |
Added CSS rule for .github-publisher button width. |
src/utils/index.ts |
Introduced FIND_REGEX , imported createRegexFromText and slugify , modified createLink logic. |
🐇✨
In a land of code and binary dreams,
A rabbit hopped, weaving seamless seams.
With a flick and a hop, it transformed the maze,
Links and patterns found their ways.
In the glow of the moon, under starry themes,
It whispered to the code, "Adapt and gleam!"
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Refactor
New Features
Style
.github-publisher
buttons to be 100%.Chores