moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

Unicode-based string pattern matching breaks compatibility

Open Crembot opened this issue 8 years ago • 0 comments

Since KopiLua - and by extension, MoonSharp - uses .NET's Char class and Char.IsPunctuation to perform Lua's %p pattern match, the results differ from what it expects and it breaks a bunch of old scripts, most notably MetaLua (it expects = to be punctuation by Microsoft does not agree).

Crembot avatar Mar 28 '16 15:03 Crembot