A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mysticatea/regexpp/commit/09d6b013bc029b3a2d1531ab72a7fe0572bec0c5 below:

problems on Node 4 · mysticatea/regexpp@09d6b01 · GitHub

File tree Expand file treeCollapse file tree 6 files changed

+9

-7

lines changed

Filter options

Expand file treeCollapse file tree 6 files changed

+9

-7

lines changed Original file line number Diff line number Diff line change

@@ -7,6 +7,7 @@ rules:

7 7

class-methods-use-this: off

8 8

complexity: off

9 9

mysticatea/arrow-parens: off

10 +

mysticatea/prefer-for-of: off

10 11

prettier/prettier:

11 12

- error

12 13

- tabWidth: 4

Original file line number Diff line number Diff line change

@@ -22,6 +22,7 @@

22 22

"mocha": "^5.0.1",

23 23

"npm-run-all": "^4.1.2",

24 24

"prettier": "^1.9.2",

25 +

"rimraf": "^2.6.2",

25 26

"rollup": "^0.56.1",

26 27

"rollup-plugin-node-resolve": "^3.0.3",

27 28

"rollup-plugin-sourcemaps": "^0.4.2",

Original file line number Diff line number Diff line change

@@ -908,11 +908,11 @@ export class RegExpValidator {

908 908

const c = String.fromCodePoint(cp)

909 909

this.raise(`Unexpected character '${c}'`)

910 910

}

911 -

for (const name of this._backreferenceNames) {

911 +

this._backreferenceNames.forEach(name => {

912 912

if (!this._groupNames.has(name)) {

913 913

this.raise("Invalid named capture referenced")

914 914

}

915 -

}

915 +

})

916 916

this.onPatternLeave(start, this.index)

917 917

}

918 918 Original file line number Diff line number Diff line change

@@ -1,9 +1,9 @@

1 1

import assert from "assert"

2 -

import { parseRegExpLiteral, ParserOptions } from "../src/index"

2 +

import { parseRegExpLiteral, RegExpParser } from "../src/index"

3 3

import { cloneWithoutCircular } from "../tools/clone-without-circular"

4 4

import { Fixtures } from "./fixtures/parser/literal"

5 5 6 -

function generateAST(source: string, options: ParserOptions): object {

6 +

function generateAST(source: string, options: RegExpParser.Options): object {

7 7

return JSON.parse(

8 8

Buffer.from(

9 9

JSON.stringify(

Original file line number Diff line number Diff line change

@@ -13,7 +13,7 @@

13 13

"esModuleInterop": true,

14 14

"forceConsistentCasingInFileNames": true,

15 15

"lib": [

16 -

"es2017"

16 +

"es2015"

17 17

],

18 18

"module": "commonjs",

19 19

"moduleResolution": "node",

@@ -31,7 +31,7 @@

31 31

"sourceMap": true,

32 32

"sourceRoot": "src",

33 33

"strictNullChecks": true,

34 -

"target": "es2015"

34 +

"target": "es5"

35 35

},

36 36

"include": [

37 37

"src/**/*.ts"

Original file line number Diff line number Diff line change

@@ -31,7 +31,7 @@

31 31

"sourceMap": true,

32 32

"sourceRoot": "src",

33 33

"strictNullChecks": true,

34 -

"target": "es2015"

34 +

"target": "es5"

35 35

},

36 36

"include": [

37 37

"src/**/*.ts"

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4