Skip to content

Commit

Permalink
Fixed command restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
automayt committed Nov 25, 2014
1 parent a3d8ed5 commit 5189765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ share.inputFields = [
]

share.filterOptions = (options, additionalPermittedCharacters = "") ->
for excludedOption in ["--python-expr", "--python-file", "--pmap", "--dynamic-library", "--tuple-file", "--tuple-fields", "--tuple-direction", "--tuple-dilimter", "--all-destination", "--fail-destination", "--pass-destination", "--print-statistics", "--print-volume-statistics", "--xargs"]
for excludedOption in ["--python-expr", "--python-file", "--pmap", "--dynamic-library", "--tuple-file", "--tuple-fields", "--tuple-direction", "--tuple-delimiter", "--all-destination", "--fail-destination", "--pass-destination", "--print-statistics", "--print-volume-statistics", "--xargs"]
regexp = new RegExp(excludedOption + "=?[^\\s]*", "gi")
options = options.replace(regexp, "")
filter = new RegExp("[^\\s\\=\\-\\/\\,\\.\\:0-9a-z" + additionalPermittedCharacters + "]", "gi")
Expand Down

0 comments on commit 5189765

Please sign in to comment.