[tarent-useful-scripts SCM] {mirkarte} branch master updated. c1e6c528e85709e7ee03459e7095d5cf4fe4c5eb

mirabilos at evolvis.org mirabilos at evolvis.org
Wed May 20 14:41:13 CEST 2015 • <20150520124113.996DB4A247D@evolvis.org>


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MirKarte source code repository".

The branch, master has been updated
       via  c1e6c528e85709e7ee03459e7095d5cf4fe4c5eb (commit)
      from  e0feb37209230b3e73fd0e3e7bab3347123c882e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c1e6c528e85709e7ee03459e7095d5cf4fe4c5eb
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Wed May 20 14:41:07 2015 +0200

    <sym>Geocache Found</sym>

-----------------------------------------------------------------------

Summary of changes:
 mirkarte.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mirkarte.js b/mirkarte.js
index 58d4329..3d8eec1 100644
--- a/mirkarte.js
+++ b/mirkarte.js
@@ -121,9 +121,9 @@ function jumptonextpos() {
 }
 
 mirkarte_gpx_links = [
-	[ /^GC/, 'Geocache', 'http://coord.info/$&' ],
-	[ /^TC/, 'TerraCache', 'http://www.terracaching.com/Cache/$&' ],
-	[ /^OC/, 'Geocache', 'http://www.opencaching.de/viewcache.php?wp=$&' ],
+	[ /^GC/, /\bGeocache\b/, 'http://coord.info/$&' ],
+	[ /^TC/, /\bTerraCache\b/, 'http://www.terracaching.com/Cache/$&' ],
+	[ /^OC/, /\bGeocache\b/, 'http://www.opencaching.de/viewcache.php?wp=$&' ],
 ];
 
 function add_gpx_to_map(gpx_string, layer_name) {
@@ -168,7 +168,7 @@ function add_gpx_to_map(gpx_string, layer_name) {
 			var n = mirkarte_gpx_links.length;
 			for (var i = 0; i < n; ++i) {
 				if (!mirkarte_gpx_links[i][0].test(feature.properties["name"]) ||
-				    (mirkarte_gpx_links[i][1] && mirkarte_gpx_links[i][1] != feature.properties["sym"]))
+				    !mirkarte_gpx_links[i][1].test(feature.properties["sym"]))
 					continue;
 				x = '<a href="' +
 				    feature.properties.name.replace(mirkarte_gpx_links[i][0],


hooks/post-receive
-- 
MirKarte source code repository
(Evolvis project useful-scripts repository mirkarte)


More information about the useful-scripts-commits mailing list