Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CRM_Utils_JS::dedupeClosures to ignore comments #17717

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

colemanw
Copy link
Member

Overview

This runs stripComments BEFORE dedupeClosures so that comments don't interfere with the deduping.
Also fixes stripComments to remove the line break as well as the comment line.

Before

Duplicate closures and stray line breaks in rendered angular js module file.

After

Cleaner.

This runs stripComments BEFORE dedupeClosures so that comments don't interfere with the deduping.
Also fixes stripComments to remove the line break as well as the comment line.
@civibot
Copy link

civibot bot commented Jun 30, 2020

(Standard links)

@seamuslee001
Copy link
Contributor

This seems fine to me merging

@seamuslee001 seamuslee001 merged commit 7f222e1 into civicrm:master Jun 30, 2020
@seamuslee001 seamuslee001 deleted the jsComments branch June 30, 2020 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants