You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letURL_REGEX: RegExp;try{URL_REGEX=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![-.+():%])/;}catch(e){console.info('Failed to define URL_REGEX - falling back to basic version without negative lookbehind',e);URL_REGEX=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;}
Lexical version: 0.17.1 (latest)
Steps To Reproduce
Removing the negative lookbehind here appears to fix the issue, but causes a regression for #6146:
lexical/packages/lexical-playground/src/plugins/AutoLinkPlugin/index.tsx
Lines 15 to 16 in 0683d58
A more graceful fix might be something like:
Link to code example: https://playground.lexical.dev/
The current behavior
Lexical crashes
The expected behavior
Lexical works :)
Impact of fix
This breaks Lexical on affected browsers. caniuse indicates that Safari <16.4 (March 2023) is affected in particular.
The text was updated successfully, but these errors were encountered: