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

Skip to content

Conversation

@khiga8
Copy link
Owner

@khiga8 khiga8 commented Jan 24, 2023

  • Refactor code so we're able to organize the contentScript in a more modular way. Currently it's too gnarly. Notably, there's no support for modules in contentScript so I am following the workaround noted in: Stackoverflow thread. Otherwise, we get a SyntaxError saying that import is invalid. This moves some code into src/.
  • Start adding unit tests. I added tests for the logic that flags invalid alt to start with, and caught a bug in the regex, which I included a fix for
  • Move around the observe.disconnect() and observe() code. Currently we call it within the loop, but I moved these calls outside of the loop.

@@ -1,161 +1,6 @@
/* Default. Places heading at end of line */
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been moved to src/index.js or src/utils.js.

@khiga8 khiga8 marked this pull request as ready for review January 26, 2023 13:38
@khiga8 khiga8 merged commit 87a1d4d into main Jan 28, 2023
@khiga8 khiga8 deleted the kh-regex-test-cases branch January 28, 2023 14:58
@khiga8 khiga8 mentioned this pull request Jan 28, 2023
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.

1 participant