Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Ursenbach <[email protected]>
  • Loading branch information
kellyjosephprice and erunion committed Jun 10, 2024
1 parent 3a1ba07 commit 46a7f0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,16 @@ module.exports.Variable = Variable;
// - <<apiKey>> - regular variables
// - <<glossary:glossary items>> - glossary
module.exports.VARIABLE_REGEXP = /(?:\\)?<<((?:(?![\r\n])[-_\p{L}:.\s\d])+)(?:\\)?>>/iu.source;
// copied from here: https://stackoverflow.com/a/6926184

/**

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (16 w/ React 16

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (16 w/ React 17

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (16 w/ React 18

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (18 w/ React 16

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (18 w/ React 17

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (18 w/ React 18

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (20 w/ React 16

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (20 w/ React 17

Delete `·`

Check failure on line 199 in index.jsx

View workflow job for this annotation

GitHub Actions / build (20 w/ React 18

Delete `·`
* @example `{user.api_key}`
* @example `{user.apiKeY}`
* @example `{user.片仮名}`
* @example `{user.P2P}`
* @see {@link https://stackoverflow.com/a/6926184}
*/
module.exports.MDX_VARIABLE_REGEXP =
/(\\)?\{user.[$_\p{L}][$_\p{L}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\u200C\u200D]*(\\)?\}/iu.source;

module.exports.VariablesContext = VariablesContext;
module.exports.SelectedAppContext = SelectedAppContext;

0 comments on commit 46a7f0d

Please sign in to comment.