Skip to content

Commit a72f1cf

Browse files
committed
Merge pull request nwjs#3345 from subzey/args-regexp
More precise RegExp for App.argv filtering
2 parents 8e1bade + 19358ac commit a72f1cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/app/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ function App() {
2626
require('util').inherits(App, exports.Base);
2727

2828
App.filteredArgv = [
29-
/--no-toolbar/,
30-
/--url=.*/,
31-
/--remote-debugging-port=.*/,
32-
/--renderer-cmd-prefix.*/,
29+
/^--no-toolbar$/,
30+
/^--url=/,
31+
/^--remote-debugging-port=/,
32+
/^--renderer-cmd-prefix/,
3333
];
3434

3535
App.prototype.quit = function() {

0 commit comments

Comments
 (0)