This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Description
Want to use $LAB inside a chrome-extension, however the regex that extracts the root_domain does not match the href chrome-extension:mmjeglkkcnglojkjoomifokhekiiiioe/www/index.html. According to RFC3986, Section 3.1:
Scheme names consist of a sequence of characters beginning with a
letter and followed by any combination of letters, digits, plus
("+"), period ("."), or hyphen ("-").
so the correct regex would be /^[a-z][\w\+-\/]+\:\/\/\/?[^\/]+/.