summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/xeplain.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/eplain/xeplain.tex')
-rw-r--r--Master/texmf-dist/source/eplain/xeplain.tex11
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/eplain/xeplain.tex b/Master/texmf-dist/source/eplain/xeplain.tex
index ef1d96191b5..1b0e75ee4f7 100644
--- a/Master/texmf-dist/source/eplain/xeplain.tex
+++ b/Master/texmf-dist/source/eplain/xeplain.tex
@@ -5506,7 +5506,16 @@
\expandafter\@firstoftwo
\fi
}%
-\def\@parse@version#1/#2/#3#4#5\@nil{#1#2#3#4 }%
+% From base/latex.ltx. Support both date formats
+% \ProvidePackage{pkg}[2020-01-02 ...]
+% \ProvidePackage{pkg}[2020/01/02 ...]
+%
+\def\@parse@version#1/#2/#3#4#5\@nil{%
+ \@parse@version@dash#1-#2-#3#4\@nil
+}%
+\def\@parse@version@dash#1-#2-#3#4#5\@nil{%
+ \if\relax#2\relax\else#1\fi#2#3#4 }%
+%
% For the `draft' option to graphic{s,x}.sty.
\let\ttfamily\tt
\def\strip@prefix#1>{}%