|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Tue Nov 06, 2007 9:29 pm
[2.10] Bug - Compat report with ~< ~> |
While testing a different problem:
#SUBS {%ansi(12)<%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)>%ansi(reset)}
#SUBS {%ansi(12)~<%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)~>%ansi(reset)}
They both trigger the same compatibility report bug:
Trigger
<> immediate expansion syntax no longer used [Help] : <%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)>
I just want to display them, not use them for immediate expansion. Am I doing it wrong, or is the report just misinterpreting their purpose in my script? |
|
_________________ Athlon 64 3200+
Win XP Pro x64 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Nov 06, 2007 9:44 pm |
The report doesn't necessarily flag problems, it flags things that might be problems. The <> characters don't do anything in CMUD, which might break a zMUD script that relies on them. Since you weren't using them for immediate expansion in the first place, there's no problem.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 06, 2007 10:31 pm |
Yeah, the compatibility report has no way to distinguish between the old <> expansion syntax in zMUD and the use of <> in MXP/HTML.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Nov 06, 2007 11:12 pm |
Change the regex that detects detects the <> to also check for a tilde not being there. [^~], or if the tilde has a problem being passed to the regex engine you can use [^\176].
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|