Stefano Pigozzi
Stefano Pigozzi
Seems like a Regex issue. I'm on it!
I think the issue might have been introduced in 65bd6fb1effeebe947704ddedfd812c9b7941ea0...
ok ***WHAT*** [The evaluation preview of `HASHTAG_REGEX.test(text)` alternates its result between true and false each time the code is pasted.](https://github.com/user-attachments/assets/2c831741-6666-4fe5-90bf-d2a9795479fa)
> I saw the code formatting is a little off. Your code editor might need some prettier plugin to follow the project's prettier settings 🙇 Oh, I didn't notice the...
What, shouldn't this: https://github.com/cheeaun/phanpy/blob/0f6f20629ef4104bfdac10951b14dc0ed42e708f/src/components/compose.jsx#L1308-L1340 Share behaviour with this function?: https://github.com/cheeaun/phanpy/blob/0f6f20629ef4104bfdac10951b14dc0ed42e708f/src/components/compose.jsx#L600-L647 I think that's the reason why the attach button worked but copy-and-pasting not in #656: `onChange` does not check mime...
@cheeaun How would you want me to handle this? Should I just leave it alone? In that case, the PR is ready...
Whoops. Committed via web and forgot to enter commit text. A sec!
> The other one has accept attribute which should already filter the files (I hope). Alas, it doesn't prevent the user from adding files not matching the MIME types listed...
@cheeaun Done! There seem to be non-prettified files in the main branch; not modifying those to prevent more conflicts.
Used this a bit in my fork and seems to be working fine! 🤩 Text doesn't seem to be updated everywhere like it is when Cloak mode is activated though,...