diff options
Diffstat (limited to 'node_modules/opener')
-rw-r--r-- | node_modules/opener/LICENSE.txt | 4 | ||||
-rw-r--r-- | node_modules/opener/README.md | 3 | ||||
-rw-r--r-- | node_modules/opener/lib/opener.js | 4 | ||||
-rw-r--r-- | node_modules/opener/package.json | 4 |
4 files changed, 7 insertions, 8 deletions
diff --git a/node_modules/opener/LICENSE.txt b/node_modules/opener/LICENSE.txt index 251b540e2..f74bd1310 100644 --- a/node_modules/opener/LICENSE.txt +++ b/node_modules/opener/LICENSE.txt @@ -2,7 +2,7 @@ Dual licensed under WTFPL and MIT: --- -Copyright © 2012–2018 Domenic Denicola <d@domenic.me> +Copyright © 2012–2020 Domenic Denicola <d@domenic.me> This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, @@ -26,7 +26,7 @@ as published by Sam Hocevar. See below for more details. The MIT License (MIT) -Copyright © 2012–2018 Domenic Denicola <d@domenic.me> +Copyright © 2012–2020 Domenic Denicola <d@domenic.me> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/opener/README.md b/node_modules/opener/README.md index 1d81513b1..51cc1a28c 100644 --- a/node_modules/opener/README.md +++ b/node_modules/opener/README.md @@ -34,7 +34,6 @@ editor.stdout.unref(); editor.stderr.unref(); ``` - ## Use It for Good Like opening the user's browser with a test harness in your package's test script: @@ -52,4 +51,4 @@ Like opening the user's browser with a test harness in your package's test scrip ## Why -Because Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least [according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener. +Because Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least [according to some person on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener. diff --git a/node_modules/opener/lib/opener.js b/node_modules/opener/lib/opener.js index 5fa88f375..08888c6bb 100644 --- a/node_modules/opener/lib/opener.js +++ b/node_modules/opener/lib/opener.js @@ -55,9 +55,9 @@ module.exports = function opener(args, options, callback) { // Furthermore, if "cmd /c" double-quoted the first parameter, then "start" will interpret it as a window title, // so we need to add a dummy empty-string window title: http://stackoverflow.com/a/154090/3191 // - // Additionally, on Windows ampersand needs to be escaped when passed to "start" + // Additionally, on Windows ampersand and caret need to be escaped when passed to "start" args = args.map(function (value) { - return value.replace(/&/g, "^&"); + return value.replace(/[&^]/g, "^$&"); }); args = ["/c", "start", "\"\""].concat(args); } diff --git a/node_modules/opener/package.json b/node_modules/opener/package.json index 8375584e6..0af377d15 100644 --- a/node_modules/opener/package.json +++ b/node_modules/opener/package.json @@ -1,7 +1,7 @@ { "name": "opener", "description": "Opens stuff, like webpages and files and executables, cross-platform", - "version": "1.5.1", + "version": "1.5.2", "author": "Domenic Denicola <d@domenic.me> (https://domenic.me/)", "license": "(WTFPL OR MIT)", "repository": "domenic/opener", @@ -15,6 +15,6 @@ "lint": "eslint ." }, "devDependencies": { - "eslint": "^5.3.0" + "eslint": "^7.7.0" } } |