kintesh / containerise

Firefox extension to automatically open websites in a container
MIT License
411 stars 55 forks source link

Fix matchDomainOnly without host prefix #110

Closed LoveIsGrief closed 4 years ago

LoveIsGrief commented 4 years ago

Using the preference "Match domain only" works well with globs and regexes, but broke matching completely when there was a pattern without a prefix. This PR remedies that, adds unit tests to prevent regressions (hopefully) and adds an error log when matchesSavedMap throws an exception.