Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Automatically Filter out duplicate expansions #3720

Closed
wants to merge 1 commit into from
Closed

Automatically Filter out duplicate expansions #3720

wants to merge 1 commit into from

Conversation

AustinBreslinDev
Copy link

I noticed some duplicate expansions and thought that an automated process should be able to prevent that.

Modified the buid.js file, added an extra filter function, that takes the current expansion (e), the current expansions index (idx) and finally the current expansion list that has already been filtered twice (currentList).

In the filter it checks if there is a next item in the expansion list, if there is it compares the next expansion with the current expansion using toLowerCase and returns false if they match, which excludes the current expansion from the list but includes the next expansion. If there is no next line it returns true allowing the current expansion into the filtered list.

References

Related to #2794 #3656 #3381 #2824 #3265 #3266 #2255 #3266 #3265 #2888 #2577 #2468, #2367, #2356, #2255, #2201, #2115, #1956,

@AustinBreslinDev AustinBreslinDev changed the title Filter to check current expansion with next item Automatically Filter out duplicate expansions Feb 11, 2022
@AustinBreslinDev AustinBreslinDev closed this by deleting the head repository Mar 9, 2023
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