[7.xx] Bug in $regml().pos - 17/04/10 07:45 PM
$regml().pos counts 2 characters for each UTF-8 character.
To reproduce this bug, add this alias
Then type
Results in mIRC 7.xx :
Results in mIRC 6.xx
To reproduce this bug, add this alias
Code:
alias test { var %num = $regex(mts,$1-,/(<[-_.a-zA-Z0-9]+>)/g) while (%num >= 1) { echo ** $regml(mts,%num) * $regml(mts,%num).pos dec %num } }
Then type
Code:
/test testé <t> <a>
Results in mIRC 7.xx :
Code:
** <a> * 12 ** <t> * 8
Results in mIRC 6.xx
Code:
** <a> * 11 ** <t> * 7