Skip to content

Commit aa20e7e

Browse files
* added ci.yml file
* fixed tests for baseURLencode Signed-off-by: NeelParihar <[email protected]>
1 parent 289e5eb commit aa20e7e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
setup-test-lint:
9+
name: Setup, Test, and Lint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Use Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- run: npm install
19+
- run: npm test
20+
- run: npm run lint:check

lib/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Utils.encodeURISegment = function (str) {
2525
str = str.replace(/=/g, '%3D');
2626
str = str.replace(/&/g, '%26');
2727
str = str.replace(/\+/g, '%2B');
28+
str = str.replace(/#/g, '%23');
29+
str = str.replace(/@/g, '%40');
2830
return str;
2931
};
3032

0 commit comments

Comments
 (0)