~bfiller/webbrowser-app/file-upload

« back to all changes in this revision

Viewing changes to src/app/AddressBar.qml

Fix for uppercase urls. Fixes: https://bugs.launchpad.net/bugs/1244329.

Approved by PS Jenkins bot, Olivier Tilloy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
            address.match(/^[a-z]+:\/\//)) {
132
132
            return true
133
133
        }
134
 
        if (address.split('/', 1)[0].match(/\.[a-z]{2,4}$/)) {
 
134
        if (address.split('/', 1)[0].match(/\.[a-zA-Z]{2,4}$/)) {
135
135
            return true
136
136
        }
137
137
        if (address.split('/', 1)[0].match(/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}/)) {