From ba45aaa81bd5c4d768e315ff57520738b6b59777 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Wed, 9 Jun 2021 14:55:33 +0000 Subject: chore(docs): Bump prettier, and reformat w/ it. * Bump to prettier 2.3.1. * Re-run prettier:format to apply updated format. --- docs/src/components/codes/Description.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/src/components/codes/Description.jsx') 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)); -- cgit v1.2.3