<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>The problem seems to be that GF has added island coordinate in front of the city name in the city selection on some servers but not all like the danish servers for instance.

In my installation I have modified the &lt;code&gt;Trim(str)&lt;/code&gt; function to be:
&lt;code&gt;
function Trim(str){ 
  return str.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,&quot;&quot;);
}
&lt;/code&gt;


and also removed this line:
&lt;code&gt;
city_idmainView = TrimIsland(island_id)+&quot; &quot;+city_idmainView;
&lt;/code&gt;

This works when there are no coordinates in front of the city name. I will see if I can come up with a general solution that works both with and without coordinates.</body>
  <body-html>&lt;p&gt;The problem seems to be that GF has added island coordinate in front of the city name in the city selection on some servers but not all like the danish servers for instance.&lt;/p&gt;

&lt;p&gt;In my installation I have modified the &lt;code&gt;Trim(str)&lt;/code&gt; function to be:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;function Trim(str){ 
&lt;br /&gt;  return str.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,&quot;&quot;);
&lt;br /&gt;}
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and also removed this line:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;city_idmainView = TrimIsland(island_id)+&quot; &quot;+city_idmainView;
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This works when there are no coordinates in front of the city name. I will see if I can come up with a general solution that works both with and without coordinates.&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-07-01T06:30:16Z</created-at>
  <forumable-id type="integer">29270</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">71632</id>
  <topic-id type="integer">16670</topic-id>
  <updated-at type="datetime">2008-11-17T00:17:56Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">57906</user-id>
</post>
