Rich Jeffery

Results 9 comments of Rich Jeffery

Happy birthday, bug! Any further movement on this getting resolved, as it's been sitting as a bug within my application for a year now.

alec-w's response works well, but there is a minor mistake in the strong regex - I believe it should be: ``` protected $StrongRegex = array( '*' => '/^[*]{2}([^\s](?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?[^\s])[*]{2}(?![*])/s', '_' =>...

Quick update, turns out alec-w's fix breaks if you have just two characters between your tags. i.e.: `this _is_ italic` will not work correctly, nor will `this **is** bold`.

Figured out a correction that seems to work without breaking with only two or one character between your emphasis tags: ```php protected $StrongRegex = array( '*' => '/^[*]{2}(?:([^\*\s]|[^\W](?:\\\\\*|[^*]|[*][^*]*+[*])*?[^\W]))[*]{2}(?![*])/s', '_' =>...

@erusev - that's definitely a good solution. Whilst it requires more steps to complete on short phrases (e.g. `_hello_`) it definitely is a significantly superior regex in terms of completion...

> Tests seem to pass. > > Here's a quick demo: https://regex101.com/r/cBxRKo/1 Looks like the testing may be lacking some nuance - just realised today that a bug I found...

For reference: * line 827: `i: [/]*>(.*?)/ig, '***$1***'],` and * line 847: `return html.replace(/\*{5}/g, '**');`

Works with TS-269L with expanded RAM to 3GB, with caveats that the web interface can sometimes fail to add images when you manually select one (the loading icon spins), and...

> Works with TS-269L with expanded RAM to 3GB [...] I've also disabled transcoding - whilst it probably would work, it's a relatively slow processor The TS-269L is based on...