Skip to content

Commit

Permalink
Fix windows LibreOffice detection
Browse files Browse the repository at this point in the history
Accepts "LibreOffice", "LibreOffice 6.3", AND "LibreOffice 6.3.4.2"
  • Loading branch information
dgrelaud committed Dec 18, 2019
1 parent aa0fa81 commit dd8a472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/converter.js
Expand Up @@ -494,7 +494,7 @@ function detectLibreOffice (additionalPaths) {
var _pythonName = 'python';
var _sofficeName = 'soffice';
var _linuxDirnamePattern = /^libreoffice\d+\.\d+$/;
var _windowsDirnamePattern = /^LibreOffice( \d+(?:\.\d+)?)?$/i;
var _windowsDirnamePattern = /^LibreOffice( \d+(?:\.\d+)*?)?$/i;

if (process.platform === 'darwin') {
_pathsToCheck = _pathsToCheck.concat([
Expand Down

0 comments on commit dd8a472

Please sign in to comment.