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

Exclude check for ampersand (&) at verbatim fields #10419

Merged
merged 7 commits into from
Sep 29, 2023

Conversation

koppor
Copy link
Member

@koppor koppor commented Sep 26, 2023

Fixes koppor#585 (comment)

Refs #8712 (comment)

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@@ -24,6 +26,9 @@ public List<IntegrityMessage> check(BibEntry entry) {
List<IntegrityMessage> results = new ArrayList<>();

for (Map.Entry<Field, String> field : entry.getFieldMap().entrySet()) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe even cooler to integrate the filteirng directly in to the getFieldMap call?
e.g. entry.getFieldMap().entrySet().stream().filter...
https://mkyong.com/java8/java-8-filter-a-map-examples/

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried my best. Needed to use Tuple2 for the HtmlChecker. dc82d44

Copy link
Member Author

Choose a reason for hiding this comment

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

I double checked that all usages do not modify the list any more

@koppor
Copy link
Member Author

koppor commented Sep 26, 2023

@systemoperator Your issue reported at #8712 (comment) should be fixed with this PR.

Siedlerchr
Siedlerchr previously approved these changes Sep 26, 2023
Copy link
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

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

see comments

Siedlerchr
Siedlerchr previously approved these changes Sep 26, 2023
@JabRef JabRef deleted a comment from github-actions bot Sep 28, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@Siedlerchr Siedlerchr added this pull request to the merge queue Sep 29, 2023
Merged via the queue into main with commit 00885e8 Sep 29, 2023
15 checks passed
@Siedlerchr Siedlerchr deleted the skip-verbatim-for-ampersand branch September 29, 2023 16:00
Siedlerchr added a commit that referenced this pull request Oct 3, 2023
* upstream/main: (94 commits)
  Bump org.openrewrite.rewrite from 6.3.11 to 6.3.16 (#10442)
  Update all of lucene
  Bump org.apache.lucene:lucene-core from 9.7.0 to 9.8.0
  Bump com.dlsc.gemsfx:gemsfx from 1.77.0 to 1.82.0
  Accept LaTeX errors in comment field (#10436)
  Fix NPEs in UrlCleanup (#10435)
  Fix triggering workflows (#10433)
  Show exception in cleanup error (#10430)
  Exclude check for ampersand (&) at verbatim fields (#10419)
  fix checkstyle
  fix escaping of slashes
  fix checkstyle  and l10n
  Add TeXShop (macOS only)
  Fix casing
  First set fetcherWorker properties, then start the worker
  improve variable names
  checkstyle
  Fix fetcher worker execution on background thread
  Update contributing.md
  jakarta
  ...
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.

New quality check and cleanup for &
2 participants