KrzysztofDusko / JustyBase

SQL editor/IDE
GNU General Public License v3.0
10 stars 0 forks source link

text -> $text is not replacing every "text" #291

Closed andrzejchmiel3 closed 8 months ago

andrzejchmiel3 commented 8 months ago

we have text -> $text button, but it works only where we have "text" with spaces on both sides (or commas). So in below example:

select text , text=20230114 ,text , text;

obraz

using this on "text" will add $ only to first and third text

obraz

second one won't work beacasue of "=", fourth one won't work becasue of ";"

Right now it's misleasing, because I highlighted fourth one, and it still wasn't replaced. And in longer codes, it would be hard to control if every "text" will be replaced or not, just because there is some char like "=" after it.

I think it should replace every text (even if its part of other text), or at least every text that is not connected to others with letter or "_".

KrzysztofDusko commented 8 months ago

well, beocuse of SNTP,SNTP1, SNPT_OLD, OLD_SNPT i dotn want to replace all occurences.. bot of couse :SNPT, ,snpt etc. shoul be replaces -> fixes