diff options
author | Peter Johanson <peter@peterjohanson.com> | 2021-06-09 14:55:33 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-06-09 10:58:53 -0400 |
commit | ba45aaa81bd5c4d768e315ff57520738b6b59777 (patch) | |
tree | 7604292d1ed8787cc764b579c1688ed6735e9c95 /docs/src/components/codes/Description.jsx | |
parent | 22800455e21b31fdf79ab7568627e7ae9c2837ec (diff) |
chore(docs): Bump prettier, and reformat w/ it.
* Bump to prettier 2.3.1.
* Re-run prettier:format to apply updated format.
Diffstat (limited to 'docs/src/components/codes/Description.jsx')
-rw-r--r-- | docs/src/components/codes/Description.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/src/components/codes/Description.jsx b/docs/src/components/codes/Description.jsx index 6d8c5f6..7ad5fc2 100644 --- a/docs/src/components/codes/Description.jsx +++ b/docs/src/components/codes/Description.jsx @@ -7,7 +7,8 @@ import React from "react"; import PropTypes from "prop-types"; -const specialCharactersRegex = /(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g; +const specialCharactersRegex = + /(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g; function renderSpecialCharacters(description) { const matches = Array.from(description.matchAll(specialCharactersRegex)); |