more thorough check, without path name artifacts (e.g. "./README");
authorwenzelm
Sat, 20 Aug 2022 14:03:40 +0200
changeset 75923 e4ada7b9e328
parent 75922 b327e5d5d6b4
child 75924 1402a1696dca
more thorough check, without path name artifacts (e.g. "./README");
src/Pure/Thy/sessions.scala
--- a/src/Pure/Thy/sessions.scala	Sat Aug 20 13:45:47 2022 +0200
+++ b/src/Pure/Thy/sessions.scala	Sat Aug 20 14:03:40 2022 +0200
@@ -570,8 +570,9 @@
         entry.theories.map({ case (opts, thys) =>
           (session_options ++ opts,
             thys.map({ case ((thy, pos), _) =>
-              if (illegal_theory(thy)) {
-                error("Illegal theory name " + quote(thy) + Position.here(pos))
+              val thy_name = Thy_Header.import_name(thy)
+              if (illegal_theory(thy_name)) {
+                error("Illegal theory name " + quote(thy_name) + Position.here(pos))
               }
               else (thy, pos) })) })