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: improve comments cleanup logic #290

Merged
merged 1 commit into from
Jan 17, 2024
Merged

fix: improve comments cleanup logic #290

merged 1 commit into from
Jan 17, 2024

Conversation

kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Jan 17, 2024

While importing https://news.sap.com/2023/03/sap-cx-intelligent-industry-tailored-solutions/, @mhaack found a weird behaviour: content gets stripped out.

Root cause: page contains a ds-contextual-navigation web component with attribute last-visited-country="" <!--="". Of course attribute value breaks the comments cleanup logic (string regex based).

PR improves the regex and cleanup logic, even though I am not sure removing comments still matter now we are using a DOM element everywhere.

@kptdobe kptdobe requested a review from mhaack January 17, 2024 10:16
@kptdobe kptdobe merged commit deec675 into main Jan 17, 2024
5 checks passed
@kptdobe kptdobe deleted the content-filtered-out branch January 17, 2024 11:08
github-actions bot pushed a commit that referenced this pull request Jan 17, 2024
## [3.1.4](v3.1.3...v3.1.4) (2024-01-17)

### Bug Fixes

* import comments cleanup logic ([#290](#290)) ([deec675](deec675))
Copy link

🎉 This PR is included in version 3.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants