tests/lib/ludorum.js
/** The method `asRegExps(lines)` can be used to easily map `asRegExp(line)`
	to a sequence of lines. All regular expressions are joined as a union (`|`).
	Use with caution, because the whole regular expression can get very big even
	with small boards.
	*/
The method `asRegExps(lines)` can be used to easily map `asRegExp(line)`
to a sequence of lines. All regular expressions are joined as a union (`|`).
Use with caution, because the whole regular expression can get very big even
with small boards.
The method ` asRegExps ( lines ) ` can be used to easily map ` asRegExp ( line ) ` to a sequence of lines . All regular expressions are joined as a union ( ` | ` ) . Use with caution because the whole regular expression can get very big even with small boards .
function asRegExps(lines, insideLine, outsideLine) {
		var board = this;
		return lines.map(function (line) {
			return board.asRegExp(line, insideLine, outsideLine);
		}).join('|');
	}
function asRegExps ( lines , insideLine , outsideLine ) { var board = this ; return lines . map ( function ( line ) { return board . asRegExp ( line , insideLine , outsideLine ) ; } ) . join ( '|' ) ; }
The method `asRegExps(lines)` can be used to easily map `asRegExp(line)`
to a sequence of lines.
The method ` asRegExps ( lines ) ` can be used to easily map ` asRegExp ( line ) ` to a sequence of lines .