-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 handling of escapings in bracketed patterns #11967
Conversation
The build of this PR is available at https://builds.jabref.org/pull/11967/merge. |
The build of this PR is available at https://builds.jabref.org/pull/11967/merge. |
CHANGELOG.md
Outdated
@@ -49,6 +49,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv | |||
- ⚠️ Renamed command line parameters `embeddBibfileInPdf` to `embedBibFileInPdf`, `writeMetadatatoPdf` to `writeMetadataToPdf`, and `writeXMPtoPdf` to `writeXmpToPdf`. [#11575](https://github.com/JabRef/jabref/pull/11575) | |||
- The browse button for a Custom theme now opens in the directory of the current used CSS file. [#11597](https://github.com/JabRef/jabref/pull/11597) | |||
- The browse button for a Custom exporter now opens in the directory of the current used exporter file. [#11717](https://github.com/JabRef/jabref/pull/11717) | |||
- ⚠️ We relaxed the escaping requirements for [bracketed patterns](https://docs.jabref.org/setup/citationkeypatterns). One only needs to write `\"` if a quote sign should be escaped. All other escapings are not necessary (and working) any more. [#11967](https://github.com/JabRef/jabref/pull/11967) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These affect also the filename and file directory patterns
The build of this PR is available at https://builds.jabref.org/pull/11967/merge. |
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |
* Add references to other tests * Simplify code * Add test for extracting the first word * Relax escaping * Add link to PR * Add tests Refs JabRef#11367 * Refine CHANGELOG.md * Refine CHANGELOG.md
* Add references to other tests * Simplify code * Add test for extracting the first word * Relax escaping * Add link to PR * Add tests Refs JabRef#11367 * Refine CHANGELOG.md * Refine CHANGELOG.md
* Add references to other tests * Simplify code * Add test for extracting the first word * Relax escaping * Add link to PR * Add tests Refs JabRef#11367 * Refine CHANGELOG.md * Refine CHANGELOG.md
The bracketed patterns handling introduced at #3238 (maybe earlier) was very unclear. It required unnecessary escaping and could not deal with
\"
in RegEx strings.This PR fixes it.
Twin PR: JabRef/user-documentation#524
This PR refs #11367, because it was triggered by the question there.
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)