Skip to content

[Refactor] Apply consts to store Regexes on lib/active_record/connection_adapters/pinot_adapter.rb#3

Open
carlosdanielpohlod wants to merge 2 commits into
clickfunnels2:mainfrom
carlosdanielpohlod:carlosdanielpohlod/use-conts-for-regex-on-pinot_adapter
Open

[Refactor] Apply consts to store Regexes on lib/active_record/connection_adapters/pinot_adapter.rb#3
carlosdanielpohlod wants to merge 2 commits into
clickfunnels2:mainfrom
carlosdanielpohlod:carlosdanielpohlod/use-conts-for-regex-on-pinot_adapter

Conversation

@carlosdanielpohlod
Copy link
Copy Markdown

@carlosdanielpohlod carlosdanielpohlod commented Apr 12, 2025

changes

-> Applied regex to give a meaningful name for each regex on extract_value_from_default
-> Applied a CONST with comments to explain what the has_default_function? is looking for
-> Using ::Regexp.last_match ensures explicit, safer access to regex matches, avoiding reliance on mutable global variables like $1 and improving code readability and maintainability

@etisonMachineUser etisonMachineUser added the enhancement New feature or request label Apr 12, 2025
@carlosdanielpohlod carlosdanielpohlod changed the title add regex for extract_value_from_default regex and has_default_funct… [Refactor] Apply consts to store Regexes on lib/active_record/connection_adapters/pinot_adapter.rb Apr 12, 2025
@carlosdanielpohlod carlosdanielpohlod marked this pull request as ready for review April 12, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants