Skip to content

Commit

Permalink
Updated the subscript and superscript regex
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy <sandy@sandyuraz.com>
  • Loading branch information
thecsw committed Jan 29, 2023
1 parent 8aa5265 commit 4be18df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yunyun/regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ var (
Strikethrough: `\+`,
Underline: `_`,
Link: `(?mU)\[\[(?P<link>[^][]+)\]\[(?P<text>[^][]+)(?: "(?P<desc>[^"]+)")?\]\]`,
SuperscriptStart: `\^\{`,
SuperscriptEnd: `\}`,
SubscriptStart: `_\{`,
SubscriptEnd: `\}`,
SuperscriptStart: `\^\{\{`,
SuperscriptEnd: `\}\}`,
SubscriptStart: `_\{\{`,
SubscriptEnd: `\}\}`,
}

// Pre-computed group indexes to use for group extraction.
Expand Down

0 comments on commit 4be18df

Please sign in to comment.