WeiDU bug: returning '\' in REPLACE_EVALUATE doesn't work
polymorphedsquirrel
Member Posts: 114
BACKUP ~test/backup~
AUTHOR ~polymorphedsquirrel~
VERSION ~TEST~
BEGIN ~Test case~
OUTER_PATCH_SAVE res ~xxxxxx~ BEGIN
REPLACE_EVALUATE ~x~ BEGIN END ~\\~
END
PRINT ~%res%~
Prints:
\x\x\x
Should print:
\\\\\\
OR
REPLACE_EVALUATE ~x~ BEGIN END ~\~
should print:
\\\\\\The latter currently results in an error 'illegal '\' sequence'.
My guess is that when calculating the index from which the next occurence of ~x~ is searched after a replacement,
the length of raw ~\\~ is taken (2) while the actual replacemet is obviously 1 of unascaped ~\~.
Can I report it somewhere?
0