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 escaping #524

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion en/setup/citationkeypatterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Generally, modifiers are applied in the order they are specified. In the followi
* **`:truncateN`**: Truncates the string after the N:th character and trims any trailing whitespaces. For example, **`[fulltitle:truncate3]`** will convert `A Title` to `A T`.
* **`:sentencecase`**: Changes the first character of the first word to uppercase, all remaining words are converted to lowercase. Example: `an Example Title` will be converted to `An example title`
* **`:regex("pattern", "replacement")`**: Applies regular expression pattern matching and replacement. For example,
* **`[auth.etal:regex("\\.etal","EtAl"):regex("\\.","And")]`** will extract the last name of the first author, and the last name of the second author, if there are two authors or .etal if there are more than two. The first `regex()` replaces `.etal` with `EtAl`. The second `regex()` replaces any `.` between entries with two authors with `And`.
* **`[auth.etal:regex("\.etal","EtAl"):regex("\.","And")]`** will extract the last name of the first author, and the last name of the second author, if there are two authors or .etal if there are more than two. The first `regex()` replaces `.etal` with `EtAl`. The second `regex()` replaces any `.` between entries with two authors with `And`.
* **`:(x)`**: The string between the parentheses will be inserted if the field marker preceding this modifier resolves to an empty value. The placeholder `x` may be any string. For instance, the marker **`[VOLUME:(unknown)]`** will return the entry's volume if set, and the string **unknown** if the entry's `VOLUME` field is not set.

### Formatters
Expand Down
Loading