f01c33 / rx

Regex eXplorer, allows you to test your regexes with live-reload
17 stars 0 forks source link

Windows: Color highlight not always working #6

Open SHU-red opened 5 months ago

SHU-red commented 5 months ago

Hi there, since your fix #3 rx is basically working

But it seems that i still experience a weird behavior in my example:

  1. Using the text <Value dataType="string">-0200:&#xA;kSi for max. Blabla text obfuscated.&#xBMoreText&#xA;&#xA;-0300:&#xA;kSi &gt; 5/6&#xA;</Value>
  2. Typing &#x to get all HTML excaped characters --> nothing gets highlighted
  3. Randomly erasing the regex and inserting .* to see if highlighting works in general --> Everything gets highlighted
  4. AGAIN typing &#x to get all HTML excaped characters --> correct highlighting appears

So i am able to work but sometimes its confusing if you dont know if you made a syntax error or the tool does not highlight anything

f01c33 commented 4 months ago

I think it was an issue with how i did caching of the regex and the text, just pushed a new version without it (at no performance loss from my tests), check it out!