mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
User defined regexes first
This commit is contained in:
parent
87b7f809c5
commit
90c85f59f1
@ -41,7 +41,7 @@
|
||||
extend : function (regexes, extensions) {
|
||||
for (var i in extensions) {
|
||||
if ("browser cpu device engine os".indexOf(i) !== -1 && extensions[i].length % 2 === 0) {
|
||||
regexes[i] = regexes[i].concat(extensions[i]);
|
||||
regexes[i] = extensions[i].concat(regexes[i]);
|
||||
}
|
||||
}
|
||||
return regexes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user