3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

UserAgent For SlimerJS #52

Closed bessdsv closed 9 years ago

bessdsv commented 10 years ago

Please add the following UserAgent to the list Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 SlimerJS/0.7

it is from a scriptable browser for Web developers slimerjs (http://slimerjs.org)

for him, I used the following regular expression in a file useragent/lib/regexps.js

parser = Object.create(null); parser[0] = new RegExp("(SlimerJS)/(\d+).(\d+).(\d+)"); parser[1] = 0; parser[2] = 0; parser[3] = 0; parser[4] = 0; exports.browser[159] = parser;

3rd-Eden commented 9 years ago

Closing this, all changes and regexp updates should be made against regexp database that we use, not this module.

( https://github.com/tobie/ua-parser/blob/master/regexes.yaml )