mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Merge pull request #44 from Benxamin/Typecheck-iteration
Update ua-parser.js
This commit is contained in:
commit
28429c6a36
@ -39,7 +39,9 @@
|
|||||||
|
|
||||||
var util = {
|
var util = {
|
||||||
has : function (str1, str2) {
|
has : function (str1, str2) {
|
||||||
|
if (typeof str1 === "string") {
|
||||||
return str2.toLowerCase().indexOf(str1.toLowerCase()) !== -1;
|
return str2.toLowerCase().indexOf(str1.toLowerCase()) !== -1;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
lowerize : function (str) {
|
lowerize : function (str) {
|
||||||
return str.toLowerCase();
|
return str.toLowerCase();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user