better regex for host check (see #1691)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10690 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2010-08-24 09:25:46 +00:00
parent b7f0f27dcd
commit fce15acc01

View File

@@ -138,7 +138,7 @@
<li>Layer/MapGuide.html</li>
<li>Layer/MapServer.html</li>
<li>Layer/Markers.html</li>
<script type="text/javascript">if(window.location.host.match(/(www.)?openlayers.org/)){document.write('<li>Layer/MultiMap.html</li>');}</script>
<script type="text/javascript">if(window.location.host.match(/^(www.)?openlayers.org$/)){document.write('<li>Layer/MultiMap.html</li>');}</script>
<li>Layer/PointTrack.html</li>
<li>Layer/SphericalMercator.html</li>
<li>Layer/Text.html</li>