'twitter-text library Urls without http:// and with a querystring

i'm using twitter-text js library to parse urls . I have a challenge currently i.e the library won't parse urls without http:// and with query string ex: google.com?utm_source=twitter. The library parses this as just google.com so is there a work around?.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source