Skip to content

Commit

Permalink
featfix: Recognize first line of older Mathematica LICENCE.txt files
Browse files Browse the repository at this point in the history
This should fix one problem mentioned in issue #51.
  • Loading branch information
ConnorGray committed Mar 28, 2023
1 parent aa6feb1 commit 028781c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ fn parse_app_info_from_files(
// TODO(cleanup): Find a better way of determining the WolframAppType than
// parsing LICENSE.txt.
let app_type = match contents.lines().next() {
Some("Wolfram Mathematica License Agreement") => WolframAppType::Mathematica,
Some("Wolfram Mathematica® License Agreement") => WolframAppType::Mathematica,
Some("Free Wolfram Engine(TM) for Developers: Terms and Conditions of Use") => WolframAppType::Engine,
Some("Free Wolfram Engine™ for Developers: Terms and Conditions of Use") => WolframAppType::Engine,
Expand Down

0 comments on commit 028781c

Please sign in to comment.