Fix '%b' pattern error message.
This commit is contained in:
@@ -1201,7 +1201,7 @@ public class StringLib extends TwoArgFunction {
|
|||||||
int matchbalance( int soff, int poff ) {
|
int matchbalance( int soff, int poff ) {
|
||||||
final int plen = p.length();
|
final int plen = p.length();
|
||||||
if ( poff == plen || poff + 1 == plen ) {
|
if ( poff == plen || poff + 1 == plen ) {
|
||||||
error( "unbalanced pattern" );
|
error( "malformed pattern (missing arguments to '%b')" );
|
||||||
}
|
}
|
||||||
final int slen = s.length();
|
final int slen = s.length();
|
||||||
if ( soff >= slen )
|
if ( soff >= slen )
|
||||||
|
|||||||
Reference in New Issue
Block a user