mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
Provide a default replacement for @POS@ markers
This commit is contained in:
@@ -16,8 +16,8 @@ Vue.filter('markdown', markdown);
|
|||||||
Vue.filter('markdownInline', markdownInline);
|
Vue.filter('markdownInline', markdownInline);
|
||||||
Vue.filter('position', (str, item, opts) =>
|
Vue.filter('position', (str, item, opts) =>
|
||||||
str
|
str
|
||||||
.replace(/@POS(ITION)?@/g, geometryAsString(item, opts))
|
.replace(/@POS(ITION)?@/g, geometryAsString(item, opts) || "(position unknown)")
|
||||||
.replace(/@DMS@/g, geometryAsString(item, {...opts, dms:true}))
|
.replace(/@DMS@/g, geometryAsString(item, {...opts, dms:true}) || "(position unknown)")
|
||||||
);
|
);
|
||||||
// Vue.filter('position', (str, item, opts) => str.replace(/@POS(ITION)?@/, "☺"));
|
// Vue.filter('position', (str, item, opts) => str.replace(/@POS(ITION)?@/, "☺"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user