diff --git a/packages/svelte-lexical/src/core/plugins/HashtagPlugin.svelte b/packages/svelte-lexical/src/core/plugins/HashtagPlugin.svelte index b6ae9a2..57fe8c5 100644 --- a/packages/svelte-lexical/src/core/plugins/HashtagPlugin.svelte +++ b/packages/svelte-lexical/src/core/plugins/HashtagPlugin.svelte @@ -222,7 +222,7 @@ const hashtagAlpha = '[' + alpha + ']'; const hashtagAlphanumeric = '[' + alphanumeric + ']'; - const hashtagBoundary = '^|$|[^&/' + alphanumeric + ']'; + const hashtagBoundary = '^|$|[^&/' + alphanumeric + hashChars + ']'; const hashCharList = '[' + hashChars + ']'; // A hashtag contains characters, numbers and underscores,