@vitest/utils
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -44,3 +44,3 @@ import { format as format$1, plugins } from 'pretty-format'; | ||
const formatRegExp = /%[sdjifoOcj%]/g; | ||
const formatRegExp = /%[sdjifoOc%]/g; | ||
function format(...args) { | ||
@@ -47,0 +47,0 @@ if (typeof args[0] !== "string") { |
@@ -184,3 +184,3 @@ import { format, plugins } from 'pretty-format'; | ||
}; | ||
const nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/; | ||
const nonAlphaNumericRegex_ = /[^a-z0-9]/i; | ||
const whitespaceRegex_ = /\s/; | ||
@@ -187,0 +187,0 @@ const linebreakRegex_ = /[\r\n]/; |
@@ -763,4 +763,4 @@ import { notNullish, isPrimitive } from './helpers.js'; | ||
const CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m; | ||
const SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/; | ||
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m; | ||
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/; | ||
const stackIgnorePatterns = [ | ||
@@ -805,3 +805,3 @@ "node:internal", | ||
return null; | ||
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/; | ||
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/; | ||
const matches = line.match(functionNameRegex); | ||
@@ -808,0 +808,0 @@ const functionName = matches && matches[1] ? matches[1] : void 0; |
{ | ||
"name": "@vitest/utils", | ||
"type": "module", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"description": "Shared Vitest utility functions", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154753