Skip to content

Commit

Permalink
Improve form pattern for remote tilejson urls
Browse files Browse the repository at this point in the history
mapbox#651 Valid URL characters are wide & varied.
  • Loading branch information
rcoup committed Nov 26, 2014
1 parent 601eb39 commit c275d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/modalsources.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3 class='inline'>Sources</h3>
</div>
<form class='js-remotedata js-applydata pin-bottom pad2 keyline-top row3'>
<div class='input-pill clearfix'><!--
--><input class='col9' type='text' placeholder='Mapbox map ID' title='Must use valid mapbox map ID or tilejson source. Compositing tilejson sources is not allowed. No spaces allowed.' size='20' name='id' pattern='((([\w-]+\.[\w-]+),?)+)|((https?:\/\/)+[\w\\\/\-./\:]*)' value='<% if (style.source.indexOf('mapbox://') > -1) { %><%= style.source.replace('mapbox:///','') %><% } %>'/><!--
--><input class='col9' type='text' placeholder='Mapbox map ID' title='Must use valid mapbox map ID or tilejson source. Compositing tilejson sources is not allowed. No spaces allowed.' size='20' name='id' pattern='((([\w-]+\.[\w-]+),?)+)|(https?://[^ ]+)' value='<% if (style.source.indexOf('mapbox://') > -1) { %><%= style.source.replace('mapbox:///','') %><% } %>'/><!--
--><input class='col3' type='submit' value='Apply'/>
</div>
<div class='micro quiet center pad1y'>
Expand Down

0 comments on commit c275d01

Please sign in to comment.