Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Reduce number of "replace" invocations#4

Open
qubitrenegade wants to merge 1 commit into
ghuntley:masterfrom
qubitrenegade:patch-1
Open

Reduce number of "replace" invocations#4
qubitrenegade wants to merge 1 commit into
ghuntley:masterfrom
qubitrenegade:patch-1

Conversation

@qubitrenegade
Copy link
Copy Markdown

This PR makes the following changes to reduce the number of invocations of .replace() and therefore the overall number of times we parse the document.

  • Make regex match case insensitive. This has the added benefit of matching e.g.: AwS lAmBdA as well as the other iterations.
  • Make s optional in architecture so both architecture and architectures match.

This PR makes the following changes to reduce the number of invocations of `.replace()` and therefore the overall number of times we parse the document.

* Make regex match case insensitive.  This has the added benefit of matching e.g.: `AwS lAmBdA` as well as the other iterations.
* Make `s` optional in `architecture` so both `architecture` and `architectures` match.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant