Skip to content

new feature: usertag @user inclusion, close #592 - #609

Open
vincent-peugnet wants to merge 2 commits into
masterfrom
usertag
Open

new feature: usertag @user inclusion, close #592#609
vincent-peugnet wants to merge 2 commits into
masterfrom
usertag

Conversation

@vincent-peugnet

Copy link
Copy Markdown
Owner

No description provided.

{
$rend = $this;
$id = Model::ID_REGEX;
$regex = "#(?<=^|\s)@($id)#";

@n-peugnet n-peugnet Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour le regex, j'aurais plutôt utilisé \B (ou bien \b, je les confonds toujours) pour le début, et la fin, genre #\B@($id)\b# (ou l'inverse).

Voir cet example

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes ! figures toi que j'avais testé !

Mais ça accepte les cas comme:

!@test

Donc c'est plus souple.
Je m'étais dis que c'était mieux d'être strict, mais peut être que c'est trop strict. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants