Skip to content

Commit

Permalink
fix(extension-code): support safari versions 16.4 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
lino-levan committed Dec 5, 2024
1 parent a0d2f28 commit bbedfa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-code/src/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ declare module '@tiptap/core' {
* This ensures that any text between backticks is formatted as code,
* regardless of the surrounding characters (exception being another backtick).
*/
export const inputRegex = /(?<!`)`([^`]+)`(?!`)/
export const inputRegex = /(^|[^`])`([^`]+)`(?!`)/

/**
* Matches inline code while pasting.
*/
export const pasteRegex = /(?<!`)`([^`]+)`(?!`)/g
export const pasteRegex = /(^|[^`])`([^`]+)`(?!`)/g

/**
* This extension allows you to mark text as inline code.
Expand Down

0 comments on commit bbedfa7

Please sign in to comment.