Skip to content

Commit

Permalink
move comment above declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Jan 24, 2022
1 parent f22526a commit 81868bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
RESOURCE_LINK
} from "@mitodl/ckeditor5-resource-link/src/constants"

export const RESOURCE_LINK_SHORTCODE_REGEX = /{{< resource_link (\S+) "(.*?)" >}}/g
/**
* (\S+) to match and capture the UUID
* "(.*?)" to match and capture the label text
Expand All @@ -19,6 +18,7 @@ export const RESOURCE_LINK_SHORTCODE_REGEX = /{{< resource_link (\S+) "(.*?)" >}
* - gets fooled by label texts that include literal `" >}}` values. For
* example, < resource_link uuid123 "silly " >}} link" >}}.
*/
export const RESOURCE_LINK_SHORTCODE_REGEX = /{{< resource_link (\S+) "(.*?)" >}}/g

/**
* Class for defining Markdown conversion rules for Resource links
Expand Down

0 comments on commit 81868bc

Please sign in to comment.