Skip to content

Commit 4da1c40

Browse files
remove outdated URL patch in console parser (#86) (#87)
(cherry picked from commit ace05f2) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent 9541ede commit 4da1c40

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/parse.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,6 @@ function parseCommand(source: string, options: ParseOptions) {
190190
}
191191
}
192192

193-
// TODO: this should be an issue in the docs,
194-
// the correct url is `<index/_mapping`
195-
if (data.path.endsWith("_mappings")) {
196-
data.path = data.path.slice(0, -1);
197-
data.rawPath = data.rawPath.slice(0, -1);
198-
data.url = data.url.replace(data.path + "s", data.path);
199-
}
200-
201193
// identify the body
202194
const body = removeTrailingCommas(
203195
collapseLiteralStrings(source.slice(index)),

0 commit comments

Comments
 (0)