Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transforms "+" characters to "%20" #65

Open
sstarrAtmeta opened this issue Feb 10, 2017 · 0 comments
Open

Transforms "+" characters to "%20" #65

sstarrAtmeta opened this issue Feb 10, 2017 · 0 comments

Comments

@sstarrAtmeta
Copy link

sstarrAtmeta commented Feb 10, 2017

If a string with +characters is supplied to represent a space then output will replace these with %20

Expressed in test form below

it('Uses + for spaces if part of supplied', function(){
  var originalLink = 'http://www.example.com/example.html?var=a+b';
  var u = new Uri( originalLink );
  assert.equal( u.toString(), originalLink)
})

Use case: one of our uses for jsUri is to make a "prettified" compact version of user-supplied link by stripping out information extraneous to display such as ( but not limited to ) protocol. Re-encoding the space characters with a different symbol can be confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant