fix and improve (make more strict) the molcas files detection

parent 6f0a2e97
......@@ -21,11 +21,9 @@ object MolcasParser extends SimpleExternalParserGenerator(
)) :: Nil
),
mainFileTypes = Seq("text/.*"),
mainFileRe = """.*
.*
.*
[\s^]*M O L C A S
[\s^]*version \S+ patchlevel \S+
mainFileRe = """
\s*\^[\s\^]*M O L C A S\s*
\s*\^[\s\^]*version \S+ patchlevel \S+\s*
""".r,
cmd = Seq(DefaultPythonInterpreter.pythonExe(), "${envDir}/parsers/molcas/parser/parser-molcas/main.py",
"--uri", "${mainFileUri}", "${mainFilePath}"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment