Parens in Tags
!Friendica Support
In future versions of Friendica, is it possible to not include parens (specifically close parens) in tags the same way you can't use other punctuation? (so that this doesn't #happen)
In future versions of Friendica, is it possible to not include parens (specifically close parens) in tags the same way you can't use other punctuation? (so that this doesn't #happen)
glyn
•screwlisp
•@helpers
Hypolite Petovan
•Jonathan Lamothe
•Hypolite Petovan
•@Jonathan Lamothe We have a pretty lax policy when it comes to hashtags. We accept letters, numbers and special characters including spaces (even though I don't think we match them, but I can see them in the autocompletion from received posts' tags).
We could tighten the accepted range to exclude some characters, but how do you decide which ones?
Jonathan Lamothe
•@Hypolite Petovan I mean, for matching when a post is made, I'd personally stick with alphanumeric (plus perhaps underscore?)
If you want to add other characters, perhaps some kind of notation for deliberately doing that, such as @screwlisp's suggestion here? (which may have been tongue-in-cheek, but...)
screwlisp
2024-03-29 04:05:51
Hypolite Petovan
•Jonathan Lamothe
•Hypolite Petovan
•Jonathan Lamothe
•utzer [Friendica]
•@Jonathan Lamothe @Hypolite Petovan so what actually would be needed is the regex to exclude all the unwanted characters, like parenthesis or no width space and then whenever we find some character that should terminate a tag we can add it to the regex.
@Hypolite Petovan out of interest, do you know where this is done in the code?
Hypolite Petovan
•Jonathan Lamothe
•Hypolite Petovan
•Jonathan Lamothe
•Hypolite Petovan
•utzer [Friendica]
•@Jonathan Lamothe