mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-15 21:06:44 +02:00
1888 lines
57 KiB
JSON
1888 lines
57 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"declaration": {
|
|
"type": "ObjectExpression",
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "lower",
|
|
"range": [
|
|
57,
|
|
62
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
63,
|
|
67
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 14
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
86,
|
|
90
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toLowerCase",
|
|
"range": [
|
|
91,
|
|
102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
86,
|
|
102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
86,
|
|
104
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
79,
|
|
105
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 34
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
68,
|
|
112
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
62,
|
|
112
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
57,
|
|
112
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "upper",
|
|
"range": [
|
|
121,
|
|
126
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
127,
|
|
131
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 14
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
150,
|
|
154
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toUpperCase",
|
|
"range": [
|
|
155,
|
|
166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
150,
|
|
166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
150,
|
|
168
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
143,
|
|
169
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 34
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
132,
|
|
176
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
126,
|
|
176
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
121,
|
|
176
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "trim",
|
|
"range": [
|
|
185,
|
|
189
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
190,
|
|
194
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
210,
|
|
214
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "trim",
|
|
"range": [
|
|
215,
|
|
219
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
210,
|
|
219
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
242,
|
|
246
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "trim",
|
|
"range": [
|
|
247,
|
|
251
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
242,
|
|
251
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
242,
|
|
253
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
235,
|
|
254
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
220,
|
|
265
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
206,
|
|
265
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
282,
|
|
286
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
287,
|
|
294
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
282,
|
|
294
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\s*|\\s*$/g",
|
|
"regex": {
|
|
"pattern": "^\\s*|\\s*$",
|
|
"flags": "g"
|
|
},
|
|
"range": [
|
|
295,
|
|
307
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
309,
|
|
311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
282,
|
|
312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
275,
|
|
313
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
195,
|
|
320
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
189,
|
|
320
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
185,
|
|
320
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "isEmpty",
|
|
"range": [
|
|
329,
|
|
336
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
337,
|
|
341
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 16
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
360,
|
|
364
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "trim",
|
|
"range": [
|
|
365,
|
|
369
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
360,
|
|
369
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
370,
|
|
374
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
360,
|
|
375
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
380,
|
|
382
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
360,
|
|
382
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
353,
|
|
383
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
342,
|
|
390
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
336,
|
|
390
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
329,
|
|
390
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 22,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "rgxEsc",
|
|
"range": [
|
|
399,
|
|
405
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
406,
|
|
410
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 15
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "chars",
|
|
"range": [
|
|
426,
|
|
431
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/[-\\/\\\\^$*+?.()|[\\]{}]/g",
|
|
"regex": {
|
|
"pattern": "[-\\/\\\\^$*+?.()|[\\]{}]",
|
|
"flags": "g"
|
|
},
|
|
"range": [
|
|
434,
|
|
458
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
426,
|
|
458
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
422,
|
|
459
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "escMatch",
|
|
"range": [
|
|
473,
|
|
481
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": "\\$&",
|
|
"raw": "'\\\\$&'",
|
|
"range": [
|
|
484,
|
|
490
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
473,
|
|
490
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
469,
|
|
491
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "String",
|
|
"range": [
|
|
508,
|
|
514
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
515,
|
|
519
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
508,
|
|
520
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
521,
|
|
528
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
508,
|
|
528
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chars",
|
|
"range": [
|
|
529,
|
|
534
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "escMatch",
|
|
"range": [
|
|
536,
|
|
544
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 51
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
508,
|
|
545
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
501,
|
|
546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 53
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
411,
|
|
553
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
405,
|
|
553
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
399,
|
|
553
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "matchCase",
|
|
"range": [
|
|
562,
|
|
571
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
572,
|
|
576
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mc",
|
|
"range": [
|
|
578,
|
|
580
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "mc",
|
|
"range": [
|
|
596,
|
|
598
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
595,
|
|
598
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
621,
|
|
625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "lower",
|
|
"range": [
|
|
626,
|
|
631
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
621,
|
|
631
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
632,
|
|
636
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 34
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
621,
|
|
637
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
614,
|
|
638
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 36
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
599,
|
|
649
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
592,
|
|
649
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
666,
|
|
670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
659,
|
|
671
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 20
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
581,
|
|
678
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
571,
|
|
678
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
562,
|
|
678
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
48,
|
|
683
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 1
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * String utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": []
|
|
},
|
|
"range": [
|
|
33,
|
|
684
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 2
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * String utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sourceType": "module",
|
|
"range": [
|
|
33,
|
|
684
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 2
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * String utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
29
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |