Fix pattern error message.

This commit is contained in:
Enyby
2019-11-09 23:26:48 +02:00
parent ee2d5284e7
commit da0b06555a

View File

@@ -1085,7 +1085,7 @@ public class StringLib extends TwoArgFunction {
case 'f': {
poffset += 2;
if ( poffset == p.length() || p.luaByte( poffset ) != '[' ) {
error("Missing '[' after '%f' in pattern");
error("missing '[' after '%f' in pattern");
}
int ep = classend( poffset );
int previous = ( soffset == 0 ) ? '\0' : s.luaByte( soffset - 1 );