Skip to content

Conversation

segphault
Copy link

This PR removes extensions that are made to the core Integer and String classes: to_utf8_character, charCodeAt, and slice_to_end.

Monkey-patching the core library can cause problems, such as unintentionally coupling code to the library or causing conflicts with other libraries that have their own conflicting core extensions.

I realize that this change may prove problematic for any third-party plugins that are relying on these added functions. If it would help, I'm happy to submit the necessary corresponding changes in the motion-markdown-it-plugins repository.

@digitalmoksha
Copy link
Owner

@segphault thanks for submitting the PR! This certainly makes the code better.

The specs don't pass, for either Ruby or RubyMotion. So I'm going to go ahead and merge the changes and then push the fixes on top it.

@digitalmoksha digitalmoksha merged commit a61f206 into digitalmoksha:master Jun 8, 2019
@digitalmoksha
Copy link
Owner

@segphault thanks again for the PR. I've released a new gem version, and I'll have the plugins updated shortly.

@segphault
Copy link
Author

Thanks for accepting it so quickly! I really appreciate your efforts on this library.

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.

3 participants