Skip to content

Commit

Permalink
Improve regexp legibility
Browse files Browse the repository at this point in the history
  • Loading branch information
370417 committed Jan 18, 2023
1 parent eaa0d42 commit decdb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widgets/non_visual_board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ String _renderPiecesByLocation(Board board, String rankOrFile) {
return pieces.isNotEmpty ? pieces : 'blank';
}

final _rowOrFileRegExp = RegExp('^[a-h1-8]\$');
final _rowOrFileRegExp = RegExp(r'^[a-h1-8]$');

String _colorName(Side side) {
switch (side) {
Expand Down

0 comments on commit decdb94

Please sign in to comment.