Would it be possible (if you think it woul be useful) to add a direct link to the rum page on RumX when refering to it by its RX id in a message on the forum ?
For example : “I was bamboozled when I first tasted Long Pond TECC (RX61)”
Would automatically become : “I was bamboozled when I first tasted Long Pond TECC (RX61)”
I’m not up to date on mobile development but maybe this could directly open the App.
These “normal” links (example: https://www.rum-x.com/rums/38/velier-caroni-39th-release-the-last-heavy-trinidad-rum) cannot be opened directly with the app. But you can click on the banner at the top of the screen (“Open”) on the loaded page. This “dynamic link” then actually opens the corresponding detail page in the app. I’ll check if I can optimize this behavior further.
However, in the upcoming 15.1.1 update, I have included an improvement in the app. This will make these links in the embedded forum (within the app) open directly as a rum detail page, instead of being redirected in the embedded browser.
The mechanism has this limitation for now, as I am not a RegEx expert myself and wanted to minimize my time investment. However, if anyone is familiar with it, I would appreciate any advice on how to refine the RegEx expression without creating strange side effects.
That looks like a solid starting point. But if we get rid of the mandatory () we need to consider adverse effects. Luckily the string “rx” is not very common in the most used forum languages – let alone in combination with numbers. But what if theres a nickname with that (sub-)string?
Exactly, this consideration of the edge cases is the difficulty. Therefore I have chosen (for the time being) the trivial implementation with the brackets.
Conditional negative lookbehinds could perhaps help (actually, we check that the preceding character isn’t a letter or a number. It can be anything else).
But indeed there will always be a risk of misinterpretation.