Merge lp:~daker/webbrowser-app/fix.1166063 into lp:webbrowser-app
Proposed by
Adnane Belmadiaf
Status: | Merged |
---|---|
Approved by: | Olivier Tilloy |
Approved revision: | 304 |
Merged at revision: | 308 |
Proposed branch: | lp:~daker/webbrowser-app/fix.1166063 |
Merge into: | lp:webbrowser-app |
Diff against target: |
36 lines (+15/-0) 2 files modified
src/app/AddressBar.qml (+3/-0) tests/unittests/qml/tst_AddressBar.qml (+12/-0) |
To merge this branch: | bzr merge lp:~daker/webbrowser-app/fix.1166063 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Olivier Tilloy | Approve | ||
Review via email: mp+185391@code.launchpad.net |
Commit message
Added support for IP adresses
To post a comment you must log in.
Thanks for tackling this bug!
A couple of remarks:
- I think using a regular expression to match an IP address would be more efficient. A simple regexp would be enough (no need to validate that the four components are in the range 0-255, if they are not it’s very likely a typo and the user will realize it and correct it).
- Can you add a unit test for IP addresses in tests/unittests /qml/tst_ AddressBar. qml ?