summaryrefslogtreecommitdiff
path: root/docs/src/components/codes/Description.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/components/codes/Description.jsx')
-rw-r--r--docs/src/components/codes/Description.jsx3
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));