Skip to content

Commit

Permalink
Remove return signatures
Browse files Browse the repository at this point in the history
Signed-off-by: Josh-Cena <[email protected]>
  • Loading branch information
Josh-Cena committed Sep 1, 2021
1 parent 829d9c5 commit 288f191
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const HighlightDirectives = [

const getHighlightDirectiveRegex = (
languages: readonly HighlightLanguage[] = HighlightLanguages,
): RegExp => {
) => {
// to be more reliable, the opening and closing comment must match
const commentPattern = languages
.map((lang) => {
Expand All @@ -74,7 +74,7 @@ const getHighlightDirectiveRegex = (
};

// select comment styles based on language
const highlightDirectiveRegex = (lang: string): RegExp => {
const highlightDirectiveRegex = (lang: string) => {
switch (lang) {
case 'js':
case 'javascript':
Expand Down

0 comments on commit 288f191

Please sign in to comment.