Bot-Factory 602 Posted November 6, 2014 Report Share Posted November 6, 2014 Hi Guys, I just noticed an annoying bug. Happens in V5 and V4 as well.Just wanted to check in with you guys to see if others face the same issue? When you use something like: alert($scrape attribute(<href=w"{#searchpattern}">, "href")) You can add that in Code view. Switch to node view and everythig works perfectly well. But as soon as you switch from Node view to Code view again, the ubot code get's changed to: alert($scrape attribute(<href=w#searchpattern>, "href")) So {} get's removed. Never experienced that issue before. Does someone know a workaround for this problem? ThanksDan Tracker:http://tracker.ubotstudio.com/issues/524 Quote Link to post Share on other sites
UBotDev 276 Posted November 6, 2014 Report Share Posted November 6, 2014 "$element from text" was added just for that reason. 1 Quote Link to post Share on other sites
Bot-Factory 602 Posted November 6, 2014 Author Report Share Posted November 6, 2014 "$element from text" was added just for that reason.Cool. Yes, that working fine. But isn't it a bit strange that we need another command? instead of just supporting variables in the elements field directly? Dan Quote Link to post Share on other sites
UBotDev 276 Posted November 6, 2014 Report Share Posted November 6, 2014 I've actually requested a solution for that a while ago since before there was no way to achieve that, so it doesn't bother me until it works; but yeah, I agree, it would be more user friendly that way. Quote Link to post Share on other sites
Bot-Factory 602 Posted November 6, 2014 Author Report Share Posted November 6, 2014 Strange thing is, if you do something like:alert($scrape attribute(<href=w"X{#searchpattern}">, "href")) it works. Only if {variable} is directly between "" then it doesn't work. Dan Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 6, 2014 Report Share Posted November 6, 2014 I use this for REGEX/ maybe it will work for you too. alert($curlies for RECEX(5))define $curlies for RECEX(#input) { set(#F_left_curly, "\{", "Global") set(#F_right_curly, "\}", "Global") return("{#F_left_curly}{#input}{#F_right_curly}")} Quote Link to post Share on other sites
giganut 109 Posted November 6, 2014 Report Share Posted November 6, 2014 Yup I have had that problem, I was building a very large bot and switched to code view andthen back again and it messed the whole bot up. Unfortunately I saved in the proses and losta lot of work + some. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.