Bug 212094 BirtComp.match doesn't work
The BirtComp.match() function is supposed to test if a value matches a JavaScript regular expression. However, the following expression always returns false when there are product codes that contain the string S24. BirtComp.match(dataSetRow["PRODUCTCODE"], /S24/)
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/ScriptEvalUtil.java
"evalExpr",
				"evalExpr() expr="
						+ LogUtil.toString( expr ) + ", source=" + source
						+ ", lineNo=" + lineNo );
		Object result;
		if ( expr == null )
		{
			result = null;
		}
		else if ( expr instanceof IConditionalExpression )
		{
			
			Object handle = expr.getHandle( );
			if ( handle instanceof NEvaluator )
			{
				result = Boolean.valueOf( ( (NEvaluator) handle ).evaluate( cx,
						scope ) );
			}
			else
			{
				ConditionalExpression conditionalExpr = (ConditionalExpression) expr;
				Object expression = evalExpr( conditionalExpr.getExpression( ),
						cx,
						scope,
						source,
						lineNo );
				if ( conditionalExpr.getOperand1( ) instanceof IExpressionCollection )
				{
					IExpressionCollection combinedExpr = (IExpressionCollection) ( (IConditionalExpression) expr ).getOperand1( );
					Object[] exprs = combinedExpr.getExpressions( ).toArray( );