Skip to content

Commit

Permalink
Workaround for sticky regular expressions in Node.js 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Sep 19, 2024
1 parent d36e92b commit 59cf45c
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 131 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/JScrewIt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,20 @@ jobs:

strategy:
matrix:
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12', '14', '16', '18', '20', '22']
node-version:
- '0.10'
- '0.12'
- '4'
- '6.0'
- '6'
- '8'
- '10'
- '12'
- '14'
- '16'
- '18'
- '20'
- '22'

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/~feature-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- run: |
npm install --prefix ../..
npm run prepare-legacy-test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: node-legacy
path: packages/~feature-hub/test/node-legacy
Expand All @@ -76,14 +76,14 @@ jobs:

strategy:
matrix:
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12']
node-version: ['0.10', '0.12', '4', '6.0', '6', '8', '10', '12']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: node-legacy
path: packages/~feature-hub/test/node-legacy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/~result-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- run: |
npm install --prefix ../..
npm run prepare-legacy-test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: node-legacy
path: packages/~result-format/test/node-legacy
Expand All @@ -76,14 +76,14 @@ jobs:

strategy:
matrix:
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12']
node-version: ['0.10', '0.12', '4', '6.0', '6', '8', '10', '12']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: node-legacy
path: packages/~result-format/test/node-legacy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/~solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- run: |
npm install --prefix ../..
npm run prepare-legacy-test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: node-legacy
path: packages/~solution/test/node-legacy
Expand All @@ -76,14 +76,14 @@ jobs:

strategy:
matrix:
node-version: ['0.10', '0.12', '4', '6', '8', '10', '12']
node-version: ['0.10', '0.12', '4', '6.0', '6', '8', '10', '12']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: node-legacy
path: packages/~solution/test/node-legacy
Expand Down
6 changes: 3 additions & 3 deletions api-doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
## Interfaces

- [CustomFeature](interfaces/CustomFeature.md)
- [default](interfaces/default.md)
- [ElementaryFeature](interfaces/ElementaryFeature.md)
- [encode](interfaces/encode.md)
- [EncodeOptions](interfaces/EncodeOptions.md)
- [Feature](interfaces/Feature.md)
- [FeatureAll](interfaces/FeatureAll.md)
- [FeatureConstructor](interfaces/FeatureConstructor.md)
- [PredefinedFeature](interfaces/PredefinedFeature.md)
- [default](interfaces/default.md)
- [encode](interfaces/encode.md)

## Type Aliases

Expand All @@ -26,8 +26,8 @@

## Variables

- [Feature](variables/Feature.md)
- [default](variables/default.md)
- [Feature](variables/Feature.md)

## Functions

Expand Down
96 changes: 48 additions & 48 deletions api-doc/interfaces/FeatureAll.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,15 +662,55 @@ Available in Chrome, Edge, Firefox, Safari, Opera, Android Browser, and Node.js.

***

### NODECONSTRUCTOR
### NO\_FF\_SRC

> **NODECONSTRUCTOR**: [`ElementaryFeature`](ElementaryFeature.md)
> **NO\_FF\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
Existence of the global object Node having the string representation "\[object NodeConstructor\]".
A string representation of native functions typical for V8 or for Internet Explorer but not for Firefox and Safari.

#### Remarks

Available in Safari before 10.0. This feature is not available inside web workers.
Available in Chrome, Edge, Internet Explorer, Opera, Android Browser, and Node.js.

***

### NO\_IE\_SRC

> **NO\_IE\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
A string representation of native functions typical for most engines with the notable exception of Internet Explorer.

A remarkable trait of this feature is the lack of line feed characters at the beginning and at the end of the string.

#### Remarks

Available in Chrome, Edge, Firefox, Safari, Opera, Android Browser, and Node.js.

***

### NO\_OLD\_SAFARI\_ARRAY\_ITERATOR

> **NO\_OLD\_SAFARI\_ARRAY\_ITERATOR**: [`ElementaryFeature`](ElementaryFeature.md)
The property that the string representation of Array.prototype.entries\(\) evaluates to "\[object Array Iterator\]".

#### Remarks

Available in Chrome, Edge, Firefox, Safari 9+, Opera, and Node.js 0.12+.

***

### NO\_V8\_SRC

> **NO\_V8\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
A string representation of native functions typical for Firefox, Internet Explorer and Safari.

A most remarkable trait of this feature is the presence of a line feed followed by four whitespaces \("\\n "\) before the "\[native code\]" sequence.

#### Remarks

Available in Firefox, Internet Explorer, and Safari.

***

Expand Down Expand Up @@ -778,55 +818,15 @@ Features available in Node.js 7.6 to 9.

***

### NO\_FF\_SRC

> **NO\_FF\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
A string representation of native functions typical for V8 or for Internet Explorer but not for Firefox and Safari.

#### Remarks

Available in Chrome, Edge, Internet Explorer, Opera, Android Browser, and Node.js.

***

### NO\_IE\_SRC

> **NO\_IE\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
A string representation of native functions typical for most engines with the notable exception of Internet Explorer.

A remarkable trait of this feature is the lack of line feed characters at the beginning and at the end of the string.

#### Remarks

Available in Chrome, Edge, Firefox, Safari, Opera, Android Browser, and Node.js.

***

### NO\_OLD\_SAFARI\_ARRAY\_ITERATOR

> **NO\_OLD\_SAFARI\_ARRAY\_ITERATOR**: [`ElementaryFeature`](ElementaryFeature.md)
The property that the string representation of Array.prototype.entries\(\) evaluates to "\[object Array Iterator\]".

#### Remarks

Available in Chrome, Edge, Firefox, Safari 9+, Opera, and Node.js 0.12+.

***

### NO\_V8\_SRC

> **NO\_V8\_SRC**: [`ElementaryFeature`](ElementaryFeature.md)
### NODECONSTRUCTOR

A string representation of native functions typical for Firefox, Internet Explorer and Safari.
> **NODECONSTRUCTOR**: [`ElementaryFeature`](ElementaryFeature.md)
A most remarkable trait of this feature is the presence of a line feed followed by four whitespaces \("\\n "\) before the "\[native code\]" sequence.
Existence of the global object Node having the string representation "\[object NodeConstructor\]".

#### Remarks

Available in Firefox, Internet Explorer, and Safari.
Available in Safari before 10.0. This feature is not available inside web workers.

***

Expand Down
Loading

0 comments on commit 59cf45c

Please sign in to comment.