Skip to content

Commit

Permalink
Anchor the field name regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Jan 25, 2023
1 parent 57c694a commit be983d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Inside a paragraph, list item, or header, the following inline formatting elemen

**Variables** are written as `_x_` and are translated to `<var>x</var>`. Variables cannot contain whitespace or other formatting characters.

**Fields** are written as `[[f]]` and are translated as `<var class="field">[[f]]</var>`. Field names must match `/[a-zA-Z0-9_]+/`.
**Fields** are written as `[[f]]` and are translated as `<var class="field">[[f]]</var>`. Field names must match regular expression `/^[a-zA-Z0-9_]+$/`.

**Values** are written as `*x*` and are translated to `<emu-val>x</emu-val>`. Values cannot contain asterisks.

Expand Down

0 comments on commit be983d3

Please sign in to comment.