Skip to content

Commit

Permalink
fix:(twitter) use correct boundary check
Browse files Browse the repository at this point in the history
  • Loading branch information
anantoghosh committed Aug 27, 2021
1 parent 3a6cbc1 commit e342e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twitter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import type { LinkProps } from "types";

export const twitterRegex = /\b@([\w_]+)/;
export const twitterRegex = /\B@([\w_]+)/;

export const TwitterComponent: React.FC<LinkProps> = ({ match, className }) => {
return (
Expand Down

0 comments on commit e342e5a

Please sign in to comment.