mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-15 22:52:16 +03:00
User defined regexes first
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user