Skip to content

Commit

Permalink
Merge pull request #22 from thim81/production
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb authored Jan 4, 2022
2 parents 074d6da + d2fbd7e commit a076773
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node Tests CI
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ '12', '14', '16' ]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install Dependencies
run: npm ci

- name: Run Unit Tests
run: npm run test
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function splitAndPrefix(
}

if (keep) {
foundPrefix = foundPrefix.replaceAll(new RegExp(`[^${keep.join('')}]`, 'g'), '')
foundPrefix = foundPrefix.replace(new RegExp(`[^${keep.join('')}]`, 'g'), '')
}

// the first word doesn't need a prefix, so only return the found prefix
Expand Down

0 comments on commit a076773

Please sign in to comment.