usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.07k stars 2.47k forks source link

Certain strings can mess up the UI on mobile #3336

Closed meldarionqeusse closed 6 months ago

meldarionqeusse commented 6 months ago

Describe the bug

Inputting the following note in a memo and saving it will make the ui on mobile appear mangled up

This will give you the file name without the path. The (?<=/)[^/]+$ `pattern matches any character that is not a forward slash (/) one or more times, preceded by a forward slash. The (?<=) is a positive lookbehind assertion, which means that the pattern must be preceded by a forward slash. The $ anchor matches the end of the string.

_20240509_221902

Steps to reproduce

Enter the following text in a note and save

This will give you the file name without the path. The (?<=/)[^/]+$ `pattern matches any character that is not a forward slash (/) one or more times, preceded by a forward slash. The (?<=) is a positive lookbehind assertion, which means that the pattern must be preceded by a forward slash. The $ anchor matches the end of the string.

The version of Memos you're using

0.21.0

Screenshots or additional context

No response

boojack commented 6 months ago

Fixed with https://github.com/usememos/memos/commit/5f207c8f0cb6d84709f33f4611234f4c23ab1796