Skip to content

Commit

Permalink
minor regex cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbedard committed Aug 8, 2021
1 parent 88ad0df commit b97b248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/puzzles/cube/cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class Cube extends Puzzle<CubeOptions, CubeState, CubeSimpleState, CubeTu
* @param {string} turn turn notation to parse
*/
parse(turn: string): CubeTurn {
const parts = turn.match(/^(\d)*([ulfrbdxyzULFRBDXYZ]){1}(w)*(['-2])?$/);
const parts = turn.match(/^(\d)*([ulfrbdxyz]){1}(w)*(['-2])?$/i);

if (!parts) {
error(`Invalid turn: ${turn}`);
Expand Down

0 comments on commit b97b248

Please sign in to comment.