File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 6738667386 "s": "Openstreetmap forum Netherlands",
6738767387 "d": "community.openstreetmap.org",
6738867388 "t": "osmforumnl",
67389- "u": "https://community.openstreetmap.org/search?q={{{s}}}%20%23communities%3Anl ",
67389+ "u": "https://community.openstreetmap.org/search?q={{{s}}}%20%23communities:nl ",
6739067390 "c": "Online Services",
67391- "sc": "Maps",
67392- "skip_tests": true
67391+ "sc": "Maps"
6739367392 },
6739467393 {
6739567394 "s": "OpenStreetMap Community Forum",
Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ def uri_decoded_urls(bangs)
4949 next if bang [ "skip_tests" ]
5050
5151 it "template should not be uri encoded (#{ bang [ "s" ] } )" do
52- expect ( CGI . unescapeURIComponent ( bang [ "u" ] ) . to_s ) . to eq ( bang [ "u" ] )
52+ expect ( CGI . unescapeURIComponent ( bang [ "u" ] . gsub ( /%20|%23/ , "" ) ) . to_s ) . to eq ( bang [ "u" ] . gsub ( /%20|%23/ , "" ) )
5353 end
5454
5555 it "domain should not be uri encoded (#{ bang [ "s" ] } )" do
56- expect ( CGI . unescapeURIComponent ( bang [ "d" ] ) . to_s ) . to eq ( bang [ "d" ] )
56+ expect ( CGI . unescapeURIComponent ( bang [ "d" ] . gsub ( /%20|%23/ , "" ) ) . to_s ) . to eq ( bang [ "d" ] . gsub ( /%20|%23/ , "" ) )
5757 end
5858
5959 if bang [ "ad" ]
6060 it "alt domain should not be uri encoded (#{ bang [ "s" ] } )" do
61- expect ( CGI . unescapeURIComponent ( bang [ "ad" ] ) . to_s ) . to eq ( bang [ "ad" ] )
61+ expect ( CGI . unescapeURIComponent ( bang [ "ad" ] . gsub ( /%20|%23/ , "" ) ) . to_s ) . to eq ( bang [ "ad" ] . gsub ( /%20|%23/ , "" ) )
6262 end
6363 end
6464 end
You can’t perform that action at this time.
0 commit comments