Hashtags that happen to contain HEX characters (A - F) and are 6 characters or more are not captured as hashtags #738
Description
Describe the bug
If a hashtag happens to consist of hex characters in the first 6 characters, the application will format them as Hashtags, but will not add them to the hashtag word cloud, or allow searching on that particular hash-tag... for example:
#Deadbedroom
#aeacba
Those two hashtags are not searchable .... the first is an actual term .... the second is just a set of characters I put together for testing.
To Reproduce
- Go to 'Journal entry'
- Add a #hashtag that consists of hex characters, and is at least 6 characters long, e.g. #aeacba
- Restart application and check hashtag cloud for the new hashtag; or, try to select it from the drop-down
- The hashtag is not there.
Expected behavior
I would expect any hashtag would be searchable, and included in the hashtag cloud.
Screenshots
Versions:
- RedNotebook version 2.31
- Ubuntu 22.04; Mate Desktop
Log output when reproducing bug
2023-12-13 20:36:09,086 INFO Writing log to file "/config/.rednotebook/rednotebook.log"
2023-12-13 20:36:09,086 INFO System encoding: utf-8
2023-12-13 20:36:09,086 INFO Language code: en_US
2023-12-13 20:36:09,096 INFO Spell checking languages: ['en_US']
2023-12-13 20:36:09,096 INFO Spell checking dictionaries: [('en_US', <Enchant: Hunspell Provider>)]
2023-12-13 20:36:09,173 INFO Using LibYAML
2023-12-13 20:36:09,174 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2023-12-13 20:36:09,175 INFO Running in portable mode: False
2023-12-13 20:36:09,176 INFO First Start: False
2023-12-13 20:36:09,176 INFO RedNotebook version: 2.31
2023-12-13 20:36:09,177 INFO System info: machine: x86_64, platform: Linux-5.15.0-89-generic-x86_64-with-glibc2.35, processor: x86_64, python_version: 3.10.12, release: 5.15.0-89-generic, system: Linux, GTK: (3, 24, 33), Glib: (2, 71, 3), PyGObject: (3, 42, 1), YAML: 5.4.1, WebKit2: (2, 42, 2)
2023-12-13 20:36:09,331 DEBUG Default font: Ubuntu 11
2023-12-13 20:36:09,332 DEBUG Default size: 11.0
2023-12-13 20:36:09,450 INFO Cloud ignore list: []
2023-12-13 20:36:09,450 INFO Cloud include list: ['mtv', 'spam', 'work', 'job', 'play']
2023-12-13 20:36:09,450 DEBUG Start compiling regexes
2023-12-13 20:36:09,450 DEBUG Finished
2023-12-13 20:36:09,459 DEBUG Tray icon visible: False
2023-12-13 20:36:09,460 INFO Opening journal at '/config/Nextcloud/MyJournal'
2023-12-13 20:36:09,460 DEBUG Starting to load files in dir "/config/Nextcloud/MyJournal"
2023-12-13 20:36:09,460 DEBUG Loading file "/config/Nextcloud/MyJournal/2017-11.txt"
2023-12-13 20:36:09,460 DEBUG Loading file "/config/Nextcloud/MyJournal/2018-08.txt"
2023-12-13 20:36:09,460 DEBUG Loading file "/config/Nextcloud/MyJournal/2019-02.txt"
2023-12-13 20:36:09,460 DEBUG Loading file "/config/Nextcloud/MyJournal/2019-04.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2019-08.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2020-01.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2020-02.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2020-03.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2020-06.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2022-02.txt"
2023-12-13 20:36:09,461 DEBUG Loading file "/config/Nextcloud/MyJournal/2022-03.txt"
2023-12-13 20:36:09,462 DEBUG Loading file "/config/Nextcloud/MyJournal/2022-10.txt"
2023-12-13 20:36:09,462 DEBUG Loading file "/config/Nextcloud/MyJournal/2022-11.txt"
2023-12-13 20:36:09,462 DEBUG Loading file "/config/Nextcloud/MyJournal/2023-10.txt"
2023-12-13 20:36:09,462 DEBUG Loading file "/config/Nextcloud/MyJournal/2023-11.txt"
2023-12-13 20:36:09,462 DEBUG Loading file "/config/Nextcloud/MyJournal/2023-12.txt"
2023-12-13 20:36:09,462 DEBUG Pictures is not a valid month filename
2023-12-13 20:36:09,462 DEBUG Finished loading files in dir "/config/Nextcloud/MyJournal"
2023-12-13 20:36:09,534 DEBUG Update the cloud
2023-12-13 20:36:09,542 DEBUG Background color: rgb(255,255,255)
2023-12-13 20:36:09,542 DEBUG Foreground color: rgb(0,0,0)
2023-12-13 20:36:09,544 DEBUG Cloud updated
2023-12-13 20:36:09,546 INFO Last backup was made 5 days ago
2023-12-13 20:36:19,230 DEBUG Main frame destroyed
2023-12-13 20:36:19,230 INFO Nothing to save
2023-12-13 20:36:19,230 INFO Goodbye!
2023-12-13 20:36:19,249 INFO Peak memory: 117826880 KiB