[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 150/255: more lenient regexp for matching game listing
From: |
Eric Schulte |
Subject: |
[elpa] 150/255: more lenient regexp for matching game listing |
Date: |
Sun, 16 Mar 2014 01:02:38 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit f39220e22d70d03ee94178e62aa201a561241198
Author: Eric Schulte <address@hidden>
Date: Sun Jun 3 11:22:59 2012 -0600
more lenient regexp for matching game listing
---
back-ends/igs.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/back-ends/igs.el b/back-ends/igs.el
index 6174325..afa569d 100644
--- a/back-ends/igs.el
+++ b/back-ends/igs.el
@@ -205,7 +205,7 @@
"Regular expression used to match igs player name.")
(defvar igs-player-rating-re
- "[[:digit:]]+[kd]\\*"
+ "[[:digit:]]+[kd]\\*?"
"Regular expression used to match igs player rating.")
(defvar igs-player-game-info-re "([-[:digit:]]+ [-[:digit:]]+ [-[:digit:]]+)"
@@ -216,8 +216,9 @@
"Regular expression used to parse igs player name and rating.")
(defvar igs-game-re
- (format "\\[\\([[:digit:]]+\\)\\] +%s +vs. +%s +\\((.+)\\) \\((.+)\\)$"
- igs-player-re igs-player-re)
+ (format
+ "\\[\\([[:digit:]]+\\)\\] +%s +vs. +%s +\\((.+)\\) \\((.+)\\)[[:space:]]*$"
+ igs-player-re igs-player-re)
"Regular expression used to parse igs game listings.")
(defvar igs-move-piece-re
- [elpa] 139/255: fixed off-by-one in igs moves & tracking last move, (continued)
- [elpa] 139/255: fixed off-by-one in igs moves & tracking last move, Eric Schulte, 2014/03/15
- [elpa] 138/255: igs can track a current game and apply moves, Eric Schulte, 2014/03/15
- [elpa] 142/255: TODO igs probably needs to periodically ping the server, Eric Schulte, 2014/03/15
- [elpa] 143/255: pass move through board to *back-end*, Eric Schulte, 2014/03/15
- [elpa] 144/255: tests require igs, Eric Schulte, 2014/03/15
- [elpa] 146/255: print igs kibitz strings, Eric Schulte, 2014/03/15
- [elpa] 141/255: beginning of infrastructure for player names & info, Eric Schulte, 2014/03/15
- [elpa] 145/255: periodically ping IGS server to prevent disconnect, Eric Schulte, 2014/03/15
- [elpa] 147/255: igs implements the go back-end API, Eric Schulte, 2014/03/15
- [elpa] 148/255: improved the setf method for aget, Eric Schulte, 2014/03/15
- [elpa] 150/255: more lenient regexp for matching game listing,
Eric Schulte <=
- [elpa] 152/255: Revert "improved the setf method for aget", Eric Schulte, 2014/03/15
- [elpa] 154/255: don't quit main back-end when quitting a board, Eric Schulte, 2014/03/15
- [elpa] 158/255: beginning to translate svg images into elisp, Eric Schulte, 2014/03/15
- [elpa] 149/255: push all buffer-local variables into an igs object, Eric Schulte, 2014/03/15
- [elpa] 162/255: painting a nice svg board, but more to do, Eric Schulte, 2014/03/15
- [elpa] 159/255: translated all svg stone images into elisp, Eric Schulte, 2014/03/15
- [elpa] 164/255: prompt before quitting, Eric Schulte, 2014/03/15
- [elpa] 153/255: safety measure when observing igs games, Eric Schulte, 2014/03/15
- [elpa] 163/255: sorted out different types of backgrounds, Eric Schulte, 2014/03/15
- [elpa] 168/255: adding option to play a sound during moves, Eric Schulte, 2014/03/15