Skip to content

Commit

Permalink
fix export to editor autorepair of "out count" statements
Browse files Browse the repository at this point in the history
obviously, it does not make sense to use "out count" results directly in an osm editor, but the most likely "intended" result would be to just load the respective osm elements into the editor for mapping
  • Loading branch information
tyrasd authored Dec 16, 2023
1 parent 196a5ee commit 6215541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/autorepair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ export default function autorepair(q, lng) {
let new_out_statement;
// non meta output
if (
out_statement.match(/\s(body|skel|ids|tags)/) ||
out_statement.match(/\s(body|skel|ids|tags|count)/) ||
!out_statement.match(/\s(meta)/)
) {
new_out_statement = out_statement
.replace(/\s(body|skel|ids|tags|meta)/g, "")
.replace(/\s(body|skel|ids|tags|count|meta)/g, "")
.replace(/^out/, "out meta");
new_print = new_print.replace(out_statement, new_out_statement);
out_statement = new_out_statement;
Expand Down

0 comments on commit 6215541

Please sign in to comment.