Skip to content

Commit

Permalink
revert change tap
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 17, 2024
1 parent cdcbe43 commit 0fa979a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .taprc

This file was deleted.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const types = parse.types

function safeRegex (re, opts) {
if (!opts) opts = {}
const replimit = opts.limit ?? 25
const replimit = opts.limit === undefined ? 25 : opts.limit

/* c8 ignore next 2 */
if (isRegExp(re)) re = re.source
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"devDependencies": {
"@fastify/pre-commit": "^2.1.0",
"standard": "^17.1.0",
"tap": "^18.7.2",
"tape": "^5.7.5",
"tsd": "^0.31.0"
},
"scripts": {
"lint": "standard",
"test": "npm run test:unit && npm run test:typescript",
"test:typescript": "tsd",
"test:unit": "tap"
"test:unit": "tape test/*.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/regex.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const safe = require('../')
const { test } = require('tap')
const test = require('tape')

const good = [
/\bOakland\b/,
Expand Down

0 comments on commit 0fa979a

Please sign in to comment.