1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-03 14:32:21 +02:00
TableFilter/docs/ast/source/string.js.json
koalyptus 4481fbe361 publish Docs to gh-pages (auto)
branch:       master
SHA:          c7d6de72f7
range SHA:    81f31a3106fb...c7d6de72f785
build id:     375208741
build number: 1103
2018-05-05 08:21:30 +00:00

9559 lines
237 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2086,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 77,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2086,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 77,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 34
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 14
},
"identifierName": "remove"
},
"name": "remove"
},
"local": {
"type": "Identifier",
"start": 18,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 34
},
"identifierName": "removeDiacritics"
},
"name": "removeDiacritics"
}
}
],
"source": {
"type": "StringLiteral",
"start": 41,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 53
}
},
"extra": {
"rawValue": "diacritics",
"raw": "'diacritics'"
},
"value": "diacritics"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * String utilities\n ",
"start": 56,
"end": 83,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n ",
"start": 85,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 193,
"end": 325,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 17,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 200,
"end": 325,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 17,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 206,
"end": 324,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 206,
"end": 210,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
},
"identifierName": "trim"
},
"name": "trim",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 213,
"end": 324,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 206,
"end": 210,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
},
"identifierName": "trim"
},
"name": "trim",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 214,
"end": 218,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 25
},
"identifierName": "text"
},
"name": "text"
}
],
"body": {
"type": "BlockStatement",
"start": 223,
"end": 324,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 229,
"end": 279,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 233,
"end": 242,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 233,
"end": 237,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
},
"identifierName": "text"
},
"name": "text"
},
"property": {
"type": "Identifier",
"start": 238,
"end": 242,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 17
},
"identifierName": "trim"
},
"name": "trim"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 244,
"end": 279,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 254,
"end": 273,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 27
}
},
"argument": {
"type": "CallExpression",
"start": 261,
"end": 272,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 261,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 261,
"end": 265,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 19
},
"identifierName": "text"
},
"name": "text"
},
"property": {
"type": "Identifier",
"start": 266,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 24
},
"identifierName": "trim"
},
"name": "trim"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 284,
"end": 322,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 42
}
},
"argument": {
"type": "CallExpression",
"start": 291,
"end": 321,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 291,
"end": 303,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 291,
"end": 295,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 15
},
"identifierName": "text"
},
"name": "text"
},
"property": {
"type": "Identifier",
"start": 296,
"end": 303,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 23
},
"identifierName": "replace"
},
"name": "replace"
},
"computed": false
},
"arguments": [
{
"type": "RegExpLiteral",
"start": 304,
"end": 316,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 36
}
},
"extra": {
"raw": "/^\\s*|\\s*$/g"
},
"pattern": "^\\s*|\\s*$",
"flags": "g"
},
{
"type": "StringLiteral",
"start": 318,
"end": 320,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 40
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
}
]
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * String utilities\n ",
"start": 56,
"end": 83,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n ",
"start": 85,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * String utilities\n ",
"start": 56,
"end": 83,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n ",
"start": 85,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 416,
"end": 467,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 51
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 423,
"end": 467,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 51
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 429,
"end": 466,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 50
}
},
"id": {
"type": "Identifier",
"start": 429,
"end": 436,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 20
},
"identifierName": "isEmpty"
},
"name": "isEmpty",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 439,
"end": 466,
"loc": {
"start": {
"line": 24,
"column": 23
},
"end": {
"line": 24,
"column": 50
}
},
"id": {
"type": "Identifier",
"start": 429,
"end": 436,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 20
},
"identifierName": "isEmpty"
},
"name": "isEmpty",
"leadingComments": null
},
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 440,
"end": 444,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 28
},
"identifierName": "text"
},
"name": "text"
}
],
"body": {
"type": "BinaryExpression",
"start": 449,
"end": 466,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 50
}
},
"left": {
"type": "CallExpression",
"start": 449,
"end": 459,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 43
}
},
"callee": {
"type": "Identifier",
"start": 449,
"end": 453,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 37
},
"identifierName": "trim"
},
"name": "trim"
},
"arguments": [
{
"type": "Identifier",
"start": 454,
"end": 458,
"loc": {
"start": {
"line": 24,
"column": 38
},
"end": {
"line": 24,
"column": 42
},
"identifierName": "text"
},
"name": "text"
}
]
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 464,
"end": 466,
"loc": {
"start": {
"line": 24,
"column": 48
},
"end": {
"line": 24,
"column": 50
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
}
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 613,
"end": 768,
"loc": {
"start": {
"line": 31,
"column": 0
},
"end": {
"line": 35,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 620,
"end": 768,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 35,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 626,
"end": 767,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 35,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 626,
"end": 632,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 19
},
"identifierName": "rgxEsc"
},
"name": "rgxEsc",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 635,
"end": 767,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 35,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 626,
"end": 632,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 19
},
"identifierName": "rgxEsc"
},
"name": "rgxEsc",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 636,
"end": 640,
"loc": {
"start": {
"line": 31,
"column": 23
},
"end": {
"line": 31,
"column": 27
},
"identifierName": "text"
},
"name": "text"
}
],
"body": {
"type": "BlockStatement",
"start": 645,
"end": 767,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 35,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 651,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 655,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 40
}
},
"id": {
"type": "Identifier",
"start": 655,
"end": 660,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 13
},
"identifierName": "chars"
},
"name": "chars"
},
"init": {
"type": "RegExpLiteral",
"start": 663,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 40
}
},
"extra": {
"raw": "/[-\\/\\\\^$*+?.()|[\\]{}]/g"
},
"pattern": "[-\\/\\\\^$*+?.()|[\\]{}]",
"flags": "g"
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 693,
"end": 715,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 697,
"end": 714,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 697,
"end": 705,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 16
},
"identifierName": "escMatch"
},
"name": "escMatch"
},
"init": {
"type": "StringLiteral",
"start": 708,
"end": 714,
"loc": {
"start": {
"line": 33,
"column": 19
},
"end": {
"line": 33,
"column": 25
}
},
"extra": {
"rawValue": "\\$&",
"raw": "'\\\\$&'"
},
"value": "\\$&"
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 720,
"end": 765,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 49
}
},
"argument": {
"type": "CallExpression",
"start": 727,
"end": 764,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 727,
"end": 747,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 31
}
},
"object": {
"type": "CallExpression",
"start": 727,
"end": 739,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 23
}
},
"callee": {
"type": "Identifier",
"start": 727,
"end": 733,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 17
},
"identifierName": "String"
},
"name": "String"
},
"arguments": [
{
"type": "Identifier",
"start": 734,
"end": 738,
"loc": {
"start": {
"line": 34,
"column": 18
},
"end": {
"line": 34,
"column": 22
},
"identifierName": "text"
},
"name": "text"
}
]
},
"property": {
"type": "Identifier",
"start": 740,
"end": 747,
"loc": {
"start": {
"line": 34,
"column": 24
},
"end": {
"line": 34,
"column": 31
},
"identifierName": "replace"
},
"name": "replace"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 748,
"end": 753,
"loc": {
"start": {
"line": 34,
"column": 32
},
"end": {
"line": 34,
"column": 37
},
"identifierName": "chars"
},
"name": "chars"
},
{
"type": "Identifier",
"start": 755,
"end": 763,
"loc": {
"start": {
"line": 34,
"column": 39
},
"end": {
"line": 34,
"column": 47
},
"identifierName": "escMatch"
},
"name": "escMatch"
}
]
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 960,
"end": 1106,
"loc": {
"start": {
"line": 43,
"column": 0
},
"end": {
"line": 48,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 967,
"end": 1106,
"loc": {
"start": {
"line": 43,
"column": 7
},
"end": {
"line": 48,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 973,
"end": 1105,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 48,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 973,
"end": 982,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 43,
"column": 22
},
"identifierName": "matchCase"
},
"name": "matchCase",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 985,
"end": 1105,
"loc": {
"start": {
"line": 43,
"column": 25
},
"end": {
"line": 48,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 973,
"end": 982,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 43,
"column": 22
},
"identifierName": "matchCase"
},
"name": "matchCase",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 986,
"end": 990,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 30
},
"identifierName": "text"
},
"name": "text"
},
{
"type": "AssignmentPattern",
"start": 992,
"end": 1013,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 53
}
},
"left": {
"type": "Identifier",
"start": 992,
"end": 1005,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 45
},
"identifierName": "caseSensitive"
},
"name": "caseSensitive"
},
"right": {
"type": "BooleanLiteral",
"start": 1008,
"end": 1013,
"loc": {
"start": {
"line": 43,
"column": 48
},
"end": {
"line": 43,
"column": 53
}
},
"value": false
}
}
],
"body": {
"type": "BlockStatement",
"start": 1018,
"end": 1105,
"loc": {
"start": {
"line": 43,
"column": 58
},
"end": {
"line": 48,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1024,
"end": 1086,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 46,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 1028,
"end": 1042,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 22
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 1029,
"end": 1042,
"loc": {
"start": {
"line": 44,
"column": 9
},
"end": {
"line": 44,
"column": 22
},
"identifierName": "caseSensitive"
},
"name": "caseSensitive"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1044,
"end": 1086,
"loc": {
"start": {
"line": 44,
"column": 24
},
"end": {
"line": 46,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1054,
"end": 1080,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 34
}
},
"argument": {
"type": "CallExpression",
"start": 1061,
"end": 1079,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 1061,
"end": 1077,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1061,
"end": 1065,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 19
},
"identifierName": "text"
},
"name": "text"
},
"property": {
"type": "Identifier",
"start": 1066,
"end": 1077,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 31
},
"identifierName": "toLowerCase"
},
"name": "toLowerCase"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 1091,
"end": 1103,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 16
}
},
"argument": {
"type": "Identifier",
"start": 1098,
"end": 1102,
"loc": {
"start": {
"line": 47,
"column": 11
},
"end": {
"line": 47,
"column": 15
},
"identifierName": "text"
},
"name": "text"
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1460,
"end": 2085,
"loc": {
"start": {
"line": 59,
"column": 0
},
"end": {
"line": 76,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1467,
"end": 2085,
"loc": {
"start": {
"line": 59,
"column": 7
},
"end": {
"line": 76,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1473,
"end": 2084,
"loc": {
"start": {
"line": 59,
"column": 13
},
"end": {
"line": 76,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1473,
"end": 1481,
"loc": {
"start": {
"line": 59,
"column": 13
},
"end": {
"line": 59,
"column": 21
},
"identifierName": "contains"
},
"name": "contains",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1484,
"end": 2084,
"loc": {
"start": {
"line": 59,
"column": 24
},
"end": {
"line": 76,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1473,
"end": 1481,
"loc": {
"start": {
"line": 59,
"column": 13
},
"end": {
"line": 59,
"column": 21
},
"identifierName": "contains"
},
"name": "contains",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1485,
"end": 1489,
"loc": {
"start": {
"line": 59,
"column": 25
},
"end": {
"line": 59,
"column": 29
},
"identifierName": "term"
},
"name": "term"
},
{
"type": "Identifier",
"start": 1491,
"end": 1495,
"loc": {
"start": {
"line": 59,
"column": 31
},
"end": {
"line": 59,
"column": 35
},
"identifierName": "data"
},
"name": "data"
},
{
"type": "AssignmentPattern",
"start": 1497,
"end": 1515,
"loc": {
"start": {
"line": 59,
"column": 37
},
"end": {
"line": 59,
"column": 55
}
},
"left": {
"type": "Identifier",
"start": 1497,
"end": 1507,
"loc": {
"start": {
"line": 59,
"column": 37
},
"end": {
"line": 59,
"column": 47
},
"identifierName": "exactMatch"
},
"name": "exactMatch"
},
"right": {
"type": "BooleanLiteral",
"start": 1510,
"end": 1515,
"loc": {
"start": {
"line": 59,
"column": 50
},
"end": {
"line": 59,
"column": 55
}
},
"value": false
}
},
{
"type": "AssignmentPattern",
"start": 1517,
"end": 1538,
"loc": {
"start": {
"line": 59,
"column": 57
},
"end": {
"line": 59,
"column": 78
}
},
"left": {
"type": "Identifier",
"start": 1517,
"end": 1530,
"loc": {
"start": {
"line": 59,
"column": 57
},
"end": {
"line": 59,
"column": 70
},
"identifierName": "caseSensitive"
},
"name": "caseSensitive"
},
"right": {
"type": "BooleanLiteral",
"start": 1533,
"end": 1538,
"loc": {
"start": {
"line": 59,
"column": 73
},
"end": {
"line": 59,
"column": 78
}
},
"value": false
}
},
{
"type": "AssignmentPattern",
"start": 1544,
"end": 1568,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 1544,
"end": 1560,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 20
},
"identifierName": "ignoreDiacritics"
},
"name": "ignoreDiacritics"
},
"right": {
"type": "BooleanLiteral",
"start": 1563,
"end": 1568,
"loc": {
"start": {
"line": 60,
"column": 23
},
"end": {
"line": 60,
"column": 28
}
},
"value": false
}
}
],
"body": {
"type": "BlockStatement",
"start": 1573,
"end": 2084,
"loc": {
"start": {
"line": 60,
"column": 33
},
"end": {
"line": 76,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1699,
"end": 1710,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1703,
"end": 1709,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 1703,
"end": 1709,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
},
"identifierName": "regexp"
},
"name": "regexp",
"leadingComments": null
},
"init": null,
"leadingComments": null
}
],
"kind": "let",
"leadingComments": [
{
"type": "CommentLine",
"value": " Improved by Cedric Wartel (cwl) automatic exact match for selects and",
"start": 1579,
"end": 1651,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " special characters are now filtered",
"start": 1656,
"end": 1694,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 42
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 1715,
"end": 1757,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1719,
"end": 1756,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 1719,
"end": 1727,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 16
},
"identifierName": "modifier"
},
"name": "modifier"
},
"init": {
"type": "ConditionalExpression",
"start": 1730,
"end": 1756,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 45
}
},
"test": {
"type": "Identifier",
"start": 1730,
"end": 1743,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 32
},
"identifierName": "caseSensitive"
},
"name": "caseSensitive"
},
"consequent": {
"type": "StringLiteral",
"start": 1746,
"end": 1749,
"loc": {
"start": {
"line": 64,
"column": 35
},
"end": {
"line": 64,
"column": 38
}
},
"extra": {
"rawValue": "g",
"raw": "'g'"
},
"value": "g"
},
"alternate": {
"type": "StringLiteral",
"start": 1752,
"end": 1756,
"loc": {
"start": {
"line": 64,
"column": 41
},
"end": {
"line": 64,
"column": 45
}
},
"extra": {
"rawValue": "gi",
"raw": "'gi'"
},
"value": "gi"
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1762,
"end": 1869,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
},
"test": {
"type": "Identifier",
"start": 1766,
"end": 1782,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 24
},
"identifierName": "ignoreDiacritics"
},
"name": "ignoreDiacritics"
},
"consequent": {
"type": "BlockStatement",
"start": 1784,
"end": 1869,
"loc": {
"start": {
"line": 65,
"column": 26
},
"end": {
"line": 68,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1794,
"end": 1824,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 38
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1794,
"end": 1823,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 37
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1794,
"end": 1798,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
},
"identifierName": "term"
},
"name": "term"
},
"right": {
"type": "CallExpression",
"start": 1801,
"end": 1823,
"loc": {
"start": {
"line": 66,
"column": 15
},
"end": {
"line": 66,
"column": 37
}
},
"callee": {
"type": "Identifier",
"start": 1801,
"end": 1817,
"loc": {
"start": {
"line": 66,
"column": 15
},
"end": {
"line": 66,
"column": 31
},
"identifierName": "removeDiacritics"
},
"name": "removeDiacritics"
},
"arguments": [
{
"type": "Identifier",
"start": 1818,
"end": 1822,
"loc": {
"start": {
"line": 66,
"column": 32
},
"end": {
"line": 66,
"column": 36
},
"identifierName": "term"
},
"name": "term"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 1833,
"end": 1863,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 38
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1833,
"end": 1862,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 37
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1833,
"end": 1837,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 12
},
"identifierName": "data"
},
"name": "data"
},
"right": {
"type": "CallExpression",
"start": 1840,
"end": 1862,
"loc": {
"start": {
"line": 67,
"column": 15
},
"end": {
"line": 67,
"column": 37
}
},
"callee": {
"type": "Identifier",
"start": 1840,
"end": 1856,
"loc": {
"start": {
"line": 67,
"column": 15
},
"end": {
"line": 67,
"column": 31
},
"identifierName": "removeDiacritics"
},
"name": "removeDiacritics"
},
"arguments": [
{
"type": "Identifier",
"start": 1857,
"end": 1861,
"loc": {
"start": {
"line": 67,
"column": 32
},
"end": {
"line": 67,
"column": 36
},
"identifierName": "data"
},
"name": "data"
}
]
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 1874,
"end": 2052,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 74,
"column": 5
}
},
"test": {
"type": "Identifier",
"start": 1878,
"end": 1888,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 18
},
"identifierName": "exactMatch"
},
"name": "exactMatch"
},
"consequent": {
"type": "BlockStatement",
"start": 1890,
"end": 1986,
"loc": {
"start": {
"line": 69,
"column": 20
},
"end": {
"line": 72,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1900,
"end": 1980,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 71,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1900,
"end": 1979,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 71,
"column": 21
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1900,
"end": 1906,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 14
},
"identifierName": "regexp"
},
"name": "regexp"
},
"right": {
"type": "NewExpression",
"start": 1909,
"end": 1979,
"loc": {
"start": {
"line": 70,
"column": 17
},
"end": {
"line": 71,
"column": 21
}
},
"callee": {
"type": "Identifier",
"start": 1913,
"end": 1919,
"loc": {
"start": {
"line": 70,
"column": 21
},
"end": {
"line": 70,
"column": 27
},
"identifierName": "RegExp"
},
"name": "RegExp"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 1920,
"end": 1956,
"loc": {
"start": {
"line": 70,
"column": 28
},
"end": {
"line": 70,
"column": 64
}
},
"left": {
"type": "BinaryExpression",
"start": 1920,
"end": 1944,
"loc": {
"start": {
"line": 70,
"column": 28
},
"end": {
"line": 70,
"column": 52
}
},
"left": {
"type": "StringLiteral",
"start": 1920,
"end": 1929,
"loc": {
"start": {
"line": 70,
"column": 28
},
"end": {
"line": 70,
"column": 37
}
},
"extra": {
"rawValue": "(^\\s*)",
"raw": "'(^\\\\s*)'"
},
"value": "(^\\s*)"
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 1932,
"end": 1944,
"loc": {
"start": {
"line": 70,
"column": 40
},
"end": {
"line": 70,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 1932,
"end": 1938,
"loc": {
"start": {
"line": 70,
"column": 40
},
"end": {
"line": 70,
"column": 46
},
"identifierName": "rgxEsc"
},
"name": "rgxEsc"
},
"arguments": [
{
"type": "Identifier",
"start": 1939,
"end": 1943,
"loc": {
"start": {
"line": 70,
"column": 47
},
"end": {
"line": 70,
"column": 51
},
"identifierName": "term"
},
"name": "term"
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 1947,
"end": 1956,
"loc": {
"start": {
"line": 70,
"column": 55
},
"end": {
"line": 70,
"column": 64
}
},
"extra": {
"rawValue": "(\\s*$)",
"raw": "'(\\\\s*$)'"
},
"value": "(\\s*$)"
}
},
{
"type": "Identifier",
"start": 1970,
"end": 1978,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 20
},
"identifierName": "modifier"
},
"name": "modifier"
}
]
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1992,
"end": 2052,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 74,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2002,
"end": 2046,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 52
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2002,
"end": 2045,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 51
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2002,
"end": 2008,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 14
},
"identifierName": "regexp"
},
"name": "regexp"
},
"right": {
"type": "NewExpression",
"start": 2011,
"end": 2045,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 51
}
},
"callee": {
"type": "Identifier",
"start": 2015,
"end": 2021,
"loc": {
"start": {
"line": 73,
"column": 21
},
"end": {
"line": 73,
"column": 27
},
"identifierName": "RegExp"
},
"name": "RegExp"
},
"arguments": [
{
"type": "CallExpression",
"start": 2022,
"end": 2034,
"loc": {
"start": {
"line": 73,
"column": 28
},
"end": {
"line": 73,
"column": 40
}
},
"callee": {
"type": "Identifier",
"start": 2022,
"end": 2028,
"loc": {
"start": {
"line": 73,
"column": 28
},
"end": {
"line": 73,
"column": 34
},
"identifierName": "rgxEsc"
},
"name": "rgxEsc"
},
"arguments": [
{
"type": "Identifier",
"start": 2029,
"end": 2033,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 39
},
"identifierName": "term"
},
"name": "term"
}
]
},
{
"type": "Identifier",
"start": 2036,
"end": 2044,
"loc": {
"start": {
"line": 73,
"column": 42
},
"end": {
"line": 73,
"column": 50
},
"identifierName": "modifier"
},
"name": "modifier"
}
]
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 2057,
"end": 2082,
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 29
}
},
"argument": {
"type": "CallExpression",
"start": 2064,
"end": 2081,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 2064,
"end": 2075,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 2064,
"end": 2070,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 17
},
"identifierName": "regexp"
},
"name": "regexp"
},
"property": {
"type": "Identifier",
"start": 2071,
"end": 2075,
"loc": {
"start": {
"line": 75,
"column": 18
},
"end": {
"line": 75,
"column": 22
},
"identifierName": "test"
},
"name": "test"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2076,
"end": 2080,
"loc": {
"start": {
"line": 75,
"column": 23
},
"end": {
"line": 75,
"column": 27
},
"identifierName": "data"
},
"name": "data"
}
]
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * String utilities\n ",
"start": 56,
"end": 83,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n ",
"start": 85,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " Improved by Cedric Wartel (cwl) automatic exact match for selects and",
"start": 1579,
"end": 1651,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " special characters are now filtered",
"start": 1656,
"end": 1694,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 42
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "remove",
"start": 8,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "as",
"start": 15,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeDiacritics",
"start": 18,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 34,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 36,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "diacritics",
"start": 41,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 53
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 53,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 53
},
"end": {
"line": 1,
"column": 54
}
}
},
{
"type": "CommentBlock",
"value": "*\n * String utilities\n ",
"start": 56,
"end": 83,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n ",
"start": 85,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 193,
"end": 199,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 200,
"end": 205,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 206,
"end": 210,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 211,
"end": 212,
"loc": {
"start": {
"line": 12,
"column": 18
},
"end": {
"line": 12,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 213,
"end": 214,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 214,
"end": 218,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 218,
"end": 219,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 26
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 220,
"end": 222,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 223,
"end": 224,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 31
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 229,
"end": 231,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 232,
"end": 233,
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 233,
"end": 237,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 237,
"end": 238,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 238,
"end": 242,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 242,
"end": 243,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 244,
"end": 245,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 20
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 254,
"end": 260,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 261,
"end": 265,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 265,
"end": 266,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 266,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 270,
"end": 271,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 271,
"end": 272,
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 272,
"end": 273,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 278,
"end": 279,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 284,
"end": 290,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 291,
"end": 295,
"loc": {
"start": {
"line": 16,
"column": 11
},
"end": {
"line": 16,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 295,
"end": 296,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "replace",
"start": 296,
"end": 303,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 303,
"end": 304,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 24
}
}
},
{
"type": {
"label": "regexp",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": {
"pattern": "^\\s*|\\s*$",
"flags": "g"
},
"start": 304,
"end": 316,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 316,
"end": 317,
"loc": {
"start": {
"line": 16,
"column": 36
},
"end": {
"line": 16,
"column": 37
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 318,
"end": 320,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 320,
"end": 321,
"loc": {
"start": {
"line": 16,
"column": 40
},
"end": {
"line": 16,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 321,
"end": 322,
"loc": {
"start": {
"line": 16,
"column": 41
},
"end": {
"line": 16,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 323,
"end": 324,
"loc": {
"start": {
"line": 17,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 324,
"end": 325,
"loc": {
"start": {
"line": 17,
"column": 1
},
"end": {
"line": 17,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n ",
"start": 327,
"end": 415,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 416,
"end": 422,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 423,
"end": 428,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isEmpty",
"start": 429,
"end": 436,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 437,
"end": 438,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 439,
"end": 440,
"loc": {
"start": {
"line": 24,
"column": 23
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 440,
"end": 444,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 444,
"end": 445,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 29
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 446,
"end": 448,
"loc": {
"start": {
"line": 24,
"column": 30
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 449,
"end": 453,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 453,
"end": 454,
"loc": {
"start": {
"line": 24,
"column": 37
},
"end": {
"line": 24,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 454,
"end": 458,
"loc": {
"start": {
"line": 24,
"column": 38
},
"end": {
"line": 24,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 458,
"end": 459,
"loc": {
"start": {
"line": 24,
"column": 42
},
"end": {
"line": 24,
"column": 43
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 460,
"end": 463,
"loc": {
"start": {
"line": 24,
"column": 44
},
"end": {
"line": 24,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 464,
"end": 466,
"loc": {
"start": {
"line": 24,
"column": 48
},
"end": {
"line": 24,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 466,
"end": 467,
"loc": {
"start": {
"line": 24,
"column": 50
},
"end": {
"line": 24,
"column": 51
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n ",
"start": 469,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 0
},
"end": {
"line": 30,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 613,
"end": 619,
"loc": {
"start": {
"line": 31,
"column": 0
},
"end": {
"line": 31,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 620,
"end": 625,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rgxEsc",
"start": 626,
"end": 632,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 633,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 20
},
"end": {
"line": 31,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 635,
"end": 636,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 31,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 636,
"end": 640,
"loc": {
"start": {
"line": 31,
"column": 23
},
"end": {
"line": 31,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 640,
"end": 641,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 28
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 642,
"end": 644,
"loc": {
"start": {
"line": 31,
"column": 29
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 645,
"end": 646,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 33
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 651,
"end": 654,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "chars",
"start": 655,
"end": 660,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 661,
"end": 662,
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 15
}
}
},
{
"type": {
"label": "regexp",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": {
"pattern": "[-\\/\\\\^$*+?.()|[\\]{}]",
"flags": "g"
},
"start": 663,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 687,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 40
},
"end": {
"line": 32,
"column": 41
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 693,
"end": 696,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "escMatch",
"start": 697,
"end": 705,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 706,
"end": 707,
"loc": {
"start": {
"line": 33,
"column": 17
},
"end": {
"line": 33,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "\\$&",
"start": 708,
"end": 714,
"loc": {
"start": {
"line": 33,
"column": 19
},
"end": {
"line": 33,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 714,
"end": 715,
"loc": {
"start": {
"line": 33,
"column": 25
},
"end": {
"line": 33,
"column": 26
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 720,
"end": 726,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "String",
"start": 727,
"end": 733,
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 733,
"end": 734,
"loc": {
"start": {
"line": 34,
"column": 17
},
"end": {
"line": 34,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 734,
"end": 738,
"loc": {
"start": {
"line": 34,
"column": 18
},
"end": {
"line": 34,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 738,
"end": 739,
"loc": {
"start": {
"line": 34,
"column": 22
},
"end": {
"line": 34,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 739,
"end": 740,
"loc": {
"start": {
"line": 34,
"column": 23
},
"end": {
"line": 34,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "replace",
"start": 740,
"end": 747,
"loc": {
"start": {
"line": 34,
"column": 24
},
"end": {
"line": 34,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 747,
"end": 748,
"loc": {
"start": {
"line": 34,
"column": 31
},
"end": {
"line": 34,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "chars",
"start": 748,
"end": 753,
"loc": {
"start": {
"line": 34,
"column": 32
},
"end": {
"line": 34,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 753,
"end": 754,
"loc": {
"start": {
"line": 34,
"column": 37
},
"end": {
"line": 34,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "escMatch",
"start": 755,
"end": 763,
"loc": {
"start": {
"line": 34,
"column": 39
},
"end": {
"line": 34,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 763,
"end": 764,
"loc": {
"start": {
"line": 34,
"column": 47
},
"end": {
"line": 34,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 764,
"end": 765,
"loc": {
"start": {
"line": 34,
"column": 48
},
"end": {
"line": 34,
"column": 49
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 766,
"end": 767,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 35,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 767,
"end": 768,
"loc": {
"start": {
"line": 35,
"column": 1
},
"end": {
"line": 35,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n ",
"start": 770,
"end": 959,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 42,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 960,
"end": 966,
"loc": {
"start": {
"line": 43,
"column": 0
},
"end": {
"line": 43,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 967,
"end": 972,
"loc": {
"start": {
"line": 43,
"column": 7
},
"end": {
"line": 43,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "matchCase",
"start": 973,
"end": 982,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 43,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 983,
"end": 984,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 985,
"end": 986,
"loc": {
"start": {
"line": 43,
"column": 25
},
"end": {
"line": 43,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 986,
"end": 990,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 990,
"end": 991,
"loc": {
"start": {
"line": 43,
"column": 30
},
"end": {
"line": 43,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "caseSensitive",
"start": 992,
"end": 1005,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 45
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1006,
"end": 1007,
"loc": {
"start": {
"line": 43,
"column": 46
},
"end": {
"line": 43,
"column": 47
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1008,
"end": 1013,
"loc": {
"start": {
"line": 43,
"column": 48
},
"end": {
"line": 43,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1013,
"end": 1014,
"loc": {
"start": {
"line": 43,
"column": 53
},
"end": {
"line": 43,
"column": 54
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1015,
"end": 1017,
"loc": {
"start": {
"line": 43,
"column": 55
},
"end": {
"line": 43,
"column": 57
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 43,
"column": 58
},
"end": {
"line": 43,
"column": 59
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1024,
"end": 1026,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1027,
"end": 1028,
"loc": {
"start": {
"line": 44,
"column": 7
},
"end": {
"line": 44,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1028,
"end": 1029,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "caseSensitive",
"start": 1029,
"end": 1042,
"loc": {
"start": {
"line": 44,
"column": 9
},
"end": {
"line": 44,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1042,
"end": 1043,
"loc": {
"start": {
"line": 44,
"column": 22
},
"end": {
"line": 44,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1044,
"end": 1045,
"loc": {
"start": {
"line": 44,
"column": 24
},
"end": {
"line": 44,
"column": 25
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1054,
"end": 1060,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 1061,
"end": 1065,
"loc": {
"start": {
"line": 45,
"column": 15
},
"end": {
"line": 45,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1065,
"end": 1066,
"loc": {
"start": {
"line": 45,
"column": 19
},
"end": {
"line": 45,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toLowerCase",
"start": 1066,
"end": 1077,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1077,
"end": 1078,
"loc": {
"start": {
"line": 45,
"column": 31
},
"end": {
"line": 45,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1078,
"end": 1079,
"loc": {
"start": {
"line": 45,
"column": 32
},
"end": {
"line": 45,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1079,
"end": 1080,
"loc": {
"start": {
"line": 45,
"column": 33
},
"end": {
"line": 45,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1085,
"end": 1086,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1091,
"end": 1097,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 1098,
"end": 1102,
"loc": {
"start": {
"line": 47,
"column": 11
},
"end": {
"line": 47,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1102,
"end": 1103,
"loc": {
"start": {
"line": 47,
"column": 15
},
"end": {
"line": 47,
"column": 16
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1104,
"end": 1105,
"loc": {
"start": {
"line": 48,
"column": 0
},
"end": {
"line": 48,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1105,
"end": 1106,
"loc": {
"start": {
"line": 48,
"column": 1
},
"end": {
"line": 48,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n ",
"start": 1108,
"end": 1459,
"loc": {
"start": {
"line": 50,
"column": 0
},
"end": {
"line": 58,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 1460,
"end": 1466,
"loc": {
"start": {
"line": 59,
"column": 0
},
"end": {
"line": 59,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1467,
"end": 1472,
"loc": {
"start": {
"line": 59,
"column": 7
},
"end": {
"line": 59,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "contains",
"start": 1473,
"end": 1481,
"loc": {
"start": {
"line": 59,
"column": 13
},
"end": {
"line": 59,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1482,
"end": 1483,
"loc": {
"start": {
"line": 59,
"column": 22
},
"end": {
"line": 59,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1484,
"end": 1485,
"loc": {
"start": {
"line": 59,
"column": 24
},
"end": {
"line": 59,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "term",
"start": 1485,
"end": 1489,
"loc": {
"start": {
"line": 59,
"column": 25
},
"end": {
"line": 59,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1489,
"end": 1490,
"loc": {
"start": {
"line": 59,
"column": 29
},
"end": {
"line": 59,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 1491,
"end": 1495,
"loc": {
"start": {
"line": 59,
"column": 31
},
"end": {
"line": 59,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1495,
"end": 1496,
"loc": {
"start": {
"line": 59,
"column": 35
},
"end": {
"line": 59,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "exactMatch",
"start": 1497,
"end": 1507,
"loc": {
"start": {
"line": 59,
"column": 37
},
"end": {
"line": 59,
"column": 47
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1508,
"end": 1509,
"loc": {
"start": {
"line": 59,
"column": 48
},
"end": {
"line": 59,
"column": 49
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1510,
"end": 1515,
"loc": {
"start": {
"line": 59,
"column": 50
},
"end": {
"line": 59,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1515,
"end": 1516,
"loc": {
"start": {
"line": 59,
"column": 55
},
"end": {
"line": 59,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "caseSensitive",
"start": 1517,
"end": 1530,
"loc": {
"start": {
"line": 59,
"column": 57
},
"end": {
"line": 59,
"column": 70
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1531,
"end": 1532,
"loc": {
"start": {
"line": 59,
"column": 71
},
"end": {
"line": 59,
"column": 72
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1533,
"end": 1538,
"loc": {
"start": {
"line": 59,
"column": 73
},
"end": {
"line": 59,
"column": 78
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1538,
"end": 1539,
"loc": {
"start": {
"line": 59,
"column": 78
},
"end": {
"line": 59,
"column": 79
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ignoreDiacritics",
"start": 1544,
"end": 1560,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1561,
"end": 1562,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 22
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1563,
"end": 1568,
"loc": {
"start": {
"line": 60,
"column": 23
},
"end": {
"line": 60,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1568,
"end": 1569,
"loc": {
"start": {
"line": 60,
"column": 28
},
"end": {
"line": 60,
"column": 29
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1570,
"end": 1572,
"loc": {
"start": {
"line": 60,
"column": 30
},
"end": {
"line": 60,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1573,
"end": 1574,
"loc": {
"start": {
"line": 60,
"column": 33
},
"end": {
"line": 60,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " Improved by Cedric Wartel (cwl) automatic exact match for selects and",
"start": 1579,
"end": 1651,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " special characters are now filtered",
"start": 1656,
"end": 1694,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 42
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 1699,
"end": 1702,
"loc": {
"start": {
"line": 63,
"column": 4
},
"end": {
"line": 63,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regexp",
"start": 1703,
"end": 1709,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1709,
"end": 1710,
"loc": {
"start": {
"line": 63,
"column": 14
},
"end": {
"line": 63,
"column": 15
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 1715,
"end": 1718,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 64,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "modifier",
"start": 1719,
"end": 1727,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1728,
"end": 1729,
"loc": {
"start": {
"line": 64,
"column": 17
},
"end": {
"line": 64,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "caseSensitive",
"start": 1730,
"end": 1743,
"loc": {
"start": {
"line": 64,
"column": 19
},
"end": {
"line": 64,
"column": 32
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1744,
"end": 1745,
"loc": {
"start": {
"line": 64,
"column": 33
},
"end": {
"line": 64,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "g",
"start": 1746,
"end": 1749,
"loc": {
"start": {
"line": 64,
"column": 35
},
"end": {
"line": 64,
"column": 38
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1750,
"end": 1751,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 40
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "gi",
"start": 1752,
"end": 1756,
"loc": {
"start": {
"line": 64,
"column": 41
},
"end": {
"line": 64,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1756,
"end": 1757,
"loc": {
"start": {
"line": 64,
"column": 45
},
"end": {
"line": 64,
"column": 46
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1762,
"end": 1764,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 65,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1765,
"end": 1766,
"loc": {
"start": {
"line": 65,
"column": 7
},
"end": {
"line": 65,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ignoreDiacritics",
"start": 1766,
"end": 1782,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1782,
"end": 1783,
"loc": {
"start": {
"line": 65,
"column": 24
},
"end": {
"line": 65,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1784,
"end": 1785,
"loc": {
"start": {
"line": 65,
"column": 26
},
"end": {
"line": 65,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "term",
"start": 1794,
"end": 1798,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1799,
"end": 1800,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeDiacritics",
"start": 1801,
"end": 1817,
"loc": {
"start": {
"line": 66,
"column": 15
},
"end": {
"line": 66,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1817,
"end": 1818,
"loc": {
"start": {
"line": 66,
"column": 31
},
"end": {
"line": 66,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "term",
"start": 1818,
"end": 1822,
"loc": {
"start": {
"line": 66,
"column": 32
},
"end": {
"line": 66,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1822,
"end": 1823,
"loc": {
"start": {
"line": 66,
"column": 36
},
"end": {
"line": 66,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1823,
"end": 1824,
"loc": {
"start": {
"line": 66,
"column": 37
},
"end": {
"line": 66,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 1833,
"end": 1837,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1838,
"end": 1839,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeDiacritics",
"start": 1840,
"end": 1856,
"loc": {
"start": {
"line": 67,
"column": 15
},
"end": {
"line": 67,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1856,
"end": 1857,
"loc": {
"start": {
"line": 67,
"column": 31
},
"end": {
"line": 67,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 1857,
"end": 1861,
"loc": {
"start": {
"line": 67,
"column": 32
},
"end": {
"line": 67,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1861,
"end": 1862,
"loc": {
"start": {
"line": 67,
"column": 36
},
"end": {
"line": 67,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1862,
"end": 1863,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1868,
"end": 1869,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1874,
"end": 1876,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 69,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1877,
"end": 1878,
"loc": {
"start": {
"line": 69,
"column": 7
},
"end": {
"line": 69,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "exactMatch",
"start": 1878,
"end": 1888,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1888,
"end": 1889,
"loc": {
"start": {
"line": 69,
"column": 18
},
"end": {
"line": 69,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1890,
"end": 1891,
"loc": {
"start": {
"line": 69,
"column": 20
},
"end": {
"line": 69,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regexp",
"start": 1900,
"end": 1906,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1907,
"end": 1908,
"loc": {
"start": {
"line": 70,
"column": 15
},
"end": {
"line": 70,
"column": 16
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 1909,
"end": 1912,
"loc": {
"start": {
"line": 70,
"column": 17
},
"end": {
"line": 70,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RegExp",
"start": 1913,
"end": 1919,
"loc": {
"start": {
"line": 70,
"column": 21
},
"end": {
"line": 70,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1919,
"end": 1920,
"loc": {
"start": {
"line": 70,
"column": 27
},
"end": {
"line": 70,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(^\\s*)",
"start": 1920,
"end": 1929,
"loc": {
"start": {
"line": 70,
"column": 28
},
"end": {
"line": 70,
"column": 37
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1930,
"end": 1931,
"loc": {
"start": {
"line": 70,
"column": 38
},
"end": {
"line": 70,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rgxEsc",
"start": 1932,
"end": 1938,
"loc": {
"start": {
"line": 70,
"column": 40
},
"end": {
"line": 70,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1938,
"end": 1939,
"loc": {
"start": {
"line": 70,
"column": 46
},
"end": {
"line": 70,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "term",
"start": 1939,
"end": 1943,
"loc": {
"start": {
"line": 70,
"column": 47
},
"end": {
"line": 70,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1943,
"end": 1944,
"loc": {
"start": {
"line": 70,
"column": 51
},
"end": {
"line": 70,
"column": 52
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1945,
"end": 1946,
"loc": {
"start": {
"line": 70,
"column": 53
},
"end": {
"line": 70,
"column": 54
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(\\s*$)",
"start": 1947,
"end": 1956,
"loc": {
"start": {
"line": 70,
"column": 55
},
"end": {
"line": 70,
"column": 64
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1956,
"end": 1957,
"loc": {
"start": {
"line": 70,
"column": 64
},
"end": {
"line": 70,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "modifier",
"start": 1970,
"end": 1978,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1978,
"end": 1979,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1979,
"end": 1980,
"loc": {
"start": {
"line": 71,
"column": 21
},
"end": {
"line": 71,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1985,
"end": 1986,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 5
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 1987,
"end": 1991,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1992,
"end": 1993,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 72,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regexp",
"start": 2002,
"end": 2008,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2009,
"end": 2010,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 73,
"column": 16
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2011,
"end": 2014,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RegExp",
"start": 2015,
"end": 2021,
"loc": {
"start": {
"line": 73,
"column": 21
},
"end": {
"line": 73,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2021,
"end": 2022,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rgxEsc",
"start": 2022,
"end": 2028,
"loc": {
"start": {
"line": 73,
"column": 28
},
"end": {
"line": 73,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2028,
"end": 2029,
"loc": {
"start": {
"line": 73,
"column": 34
},
"end": {
"line": 73,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "term",
"start": 2029,
"end": 2033,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2033,
"end": 2034,
"loc": {
"start": {
"line": 73,
"column": 39
},
"end": {
"line": 73,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2034,
"end": 2035,
"loc": {
"start": {
"line": 73,
"column": 40
},
"end": {
"line": 73,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "modifier",
"start": 2036,
"end": 2044,
"loc": {
"start": {
"line": 73,
"column": 42
},
"end": {
"line": 73,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2044,
"end": 2045,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2045,
"end": 2046,
"loc": {
"start": {
"line": 73,
"column": 51
},
"end": {
"line": 73,
"column": 52
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2051,
"end": 2052,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2057,
"end": 2063,
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "regexp",
"start": 2064,
"end": 2070,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2070,
"end": 2071,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "test",
"start": 2071,
"end": 2075,
"loc": {
"start": {
"line": 75,
"column": 18
},
"end": {
"line": 75,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2075,
"end": 2076,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 2076,
"end": 2080,
"loc": {
"start": {
"line": 75,
"column": 23
},
"end": {
"line": 75,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2080,
"end": 2081,
"loc": {
"start": {
"line": 75,
"column": 27
},
"end": {
"line": 75,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2081,
"end": 2082,
"loc": {
"start": {
"line": 75,
"column": 28
},
"end": {
"line": 75,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2083,
"end": 2084,
"loc": {
"start": {
"line": 76,
"column": 0
},
"end": {
"line": 76,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2084,
"end": 2085,
"loc": {
"start": {
"line": 76,
"column": 1
},
"end": {
"line": 76,
"column": 2
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2086,
"end": 2086,
"loc": {
"start": {
"line": 77,
"column": 0
},
"end": {
"line": 77,
"column": 0
}
}
}
]
}