Merge pull request #297 from somelinguist/issue-206

fix #206 Allow custom xqueryExecutionArguments ordering
This commit is contained in:
Josh Johnson 2020-07-06 23:23:43 -04:00 committed by GitHub
commit 0ff54da4d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): P
for (let i = 0; i < args.length; i++) {
if (i > 0) {
if (args[i - 1].search(/out|result/)) {
if (args[i].search(/out|result/) !== -1) {
outputPath = args[i];
outputPathPos = i;
}