changeset 39325:1bd6b6e5f2bc

(dired-move-to-filename-regexp): Allow one digit in the numeric month value, and allow the Kanji character after the it to be missing (happens with ls-lisp's output on Japanese versions of MS-Windows).
author Eli Zaretskii <eliz@gnu.org>
date Tue, 18 Sep 2001 07:11:26 +0000
parents 65a3980d9aa3
children 56e8bf258185
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Tue Sep 18 01:20:09 2001 +0000
+++ b/lisp/dired.el	Tue Sep 18 07:11:26 2001 +0000
@@ -1515,7 +1515,7 @@
 	 ;; (k "[^\x00-\x7f\x80-\xff]")
 	 (s " ")
 	 (yyyy "[0-9][0-9][0-9][0-9]")
-	 (mm "[ 0-1][0-9]")
+	 (mm "[ 0-1]?[0-9]")
 ;;old	 (dd "[ 0-3][0-9]")
 	 (dd "[ 0-3][0-9][.]?")
 	 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
@@ -1533,7 +1533,8 @@
 			          "\\|" s "?" yyyy
 			     "\\)"))
 	 (japanese
-	  (concat mm k s dd k "?" s "+" "\\(" HH:MM "\\|" yyyy k "?" "\\)")))
+	  (concat mm k "?" s dd k "?" s "+"
+		  "\\(" HH:MM "\\|" yyyy k "?" "\\)")))
 	 ;; The "[0-9]" below requires the previous column to end in a digit.
 	 ;; This avoids recognizing `1 may 1997' as a date in the line:
 	 ;; -r--r--r--   1 may      1997        1168 Oct 19 16:49 README