TimvanSteenbergen / onepasswordforeverysite

Safe and easy access to websites
https://www.opfes.com
0 stars 2 forks source link

domain not correctly determined for accounts ending on .co.uk #27

Closed TimvanSteenbergen closed 7 years ago

TimvanSteenbergen commented 7 years ago

Like www.amazon.co.uk -> now results in 'co.uk' instead of 'amazon.co.uk'

TimvanSteenbergen commented 7 years ago

Solve with this regex: (.[^.]{0,2})(.[^.]{0,2})(.$)|(.[^.])(.*$)

See http://stackoverflow.com/questions/25942552/get-second-level-domain-name-from-url