Skip to content

Commit

Permalink
Add check to detect @n-t-roff's 9front troff port
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed May 31, 2018
1 parent 2c60980 commit cdf9d5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/troff-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,13 @@ class TroffType{
return new TroffType({path, name: this.DWB});

// Gunnar Ritter's port of Solaris 10's troff
if(/([\/\\])sunroff\1bin\1/i.test(path))
if(/([/\\])sunroff\1bin\1/i.test(path))
return new TroffType({path, name: this.SOLARIS10});

// Gunnar Ritter's port of 9front troff
if(/([/\\])9froff\1bin\1/i.test(path))
return new TroffType({path, name: this.FRONT});

// Last resort: blindly guess platform-specific troff
switch(process.platform){
// IBM AIX/IRIX
Expand Down

0 comments on commit cdf9d5c

Please sign in to comment.