diff --git a/docs/Bowser.html b/docs/Bowser.html index 9694489..02daa42 100644 --- a/docs/Bowser.html +++ b/docs/Bowser.html @@ -492,7 +492,7 @@ explicitly. Same as skipParsing for Parser diff --git a/docs/Parser.html b/docs/Parser.html index 1d4ead5..3f4865b 100644 --- a/docs/Parser.html +++ b/docs/Parser.html @@ -1498,7 +1498,7 @@ like Parser#parseBrowser or Source:
@@ -1700,7 +1700,7 @@ like Parser#parseBrowser or is(anything) → {Boolean} +

is(anything, includingAliasopt) → {Boolean}

@@ -1712,7 +1712,7 @@ like
Parser#parseBrowser or Source:
@@ -1779,8 +1779,12 @@ the OS called "anything" or the platform called "anything"Type + Attributes + + Default + Description @@ -1804,13 +1808,59 @@ the OS called "anything" or the platform called "anything" + + + + + + + + + + + + + + + + includingAlias + + + + + + + + + + <optional>
+ + + + + + + + + + + + false + + + + +

The flag showing whether alias will be included into comparison

+ + + @@ -1867,7 +1917,7 @@ the OS called "anything" or the platform called "anything"Source:
@@ -2054,7 +2104,7 @@ the OS called "anything" or the platform called "anything"parse() +

parse() → {Parser}

@@ -2066,7 +2116,7 @@ the OS called "anything" or the platform called "anything"Source:
@@ -2133,6 +2183,24 @@ the OS called "anything" or the platform called "anything"Returns: + + + + +
+
+ Type +
+
+ +Parser + + +
+
+ + @@ -2576,7 +2644,7 @@ the OS called "anything" or the platform called "anything"Source:
@@ -2750,7 +2818,7 @@ Returns undefined when the browser is no described in the checkTree
Source:
@@ -3061,7 +3129,7 @@ Returns undefined when the browser is no described in the checkTree
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index 75c8ffc..c33671e 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -133,7 +133,7 @@ export default Bowser;
diff --git a/docs/global.html b/docs/global.html index 20af747..5d7a1c7 100644 --- a/docs/global.html +++ b/docs/global.html @@ -2706,7 +2706,7 @@ like "iPhone" or "Kindle Fire HD 7" diff --git a/docs/index.html b/docs/index.html index 0d37ff7..f9cb242 100644 --- a/docs/index.html +++ b/docs/index.html @@ -210,7 +210,7 @@ list of aliases can be found in the file.


diff --git a/docs/parser.js.html b/docs/parser.js.html index 297b972..11adc02 100644 --- a/docs/parser.js.html +++ b/docs/parser.js.html @@ -357,6 +357,7 @@ class Parser { /** * Parse full information about the browser + * @returns {Parser} */ parse() { this.parseBrowser(); @@ -518,10 +519,12 @@ class Parser { * Is anything? Check if the browser is called "anything", * the OS called "anything" or the platform called "anything" * @param {String} anything + * @param [includingAlias=false] The flag showing whether alias will be included into comparison * @returns {Boolean} */ - is(anything) { - return this.isBrowser(anything) || this.isOS(anything) || this.isPlatform(anything); + is(anything, includingAlias = false) { + return this.isBrowser(anything, includingAlias) || this.isOS(anything) + || this.isPlatform(anything); } /** @@ -549,7 +552,7 @@ export default Parser;
diff --git a/docs/utils.js.html b/docs/utils.js.html index 6ddaa75..b20a008 100644 --- a/docs/utils.js.html +++ b/docs/utils.js.html @@ -365,7 +365,7 @@ export default class Utils {