Skip to content

Commit

Permalink
Update and fix typo in citationkeypatterns.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiloteE authored Jun 12, 2024
1 parent 8efc6f7 commit c6b941f
Showing 1 changed file with 1 addition and 1 deletion.
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")]`**, the first `regex()` replaces `.etal` with `EtAl`. The second `regex()` replaces the `.` 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`.

Check failure on line 111 in en/setup/citationkeypatterns.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces [Expected: 0 or 2; Actual: 1]

en/setup/citationkeypatterns.md:111:348 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

Check failure on line 111 in en/setup/citationkeypatterns.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces [Expected: 0 or 2; Actual: 1]

en/setup/citationkeypatterns.md:111:348 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
* **`:(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

0 comments on commit c6b941f

Please sign in to comment.