Skip to content

Commit be94bc0

Browse files
authored
Fix numbers
1 parent d32e3bf commit be94bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/matchers/toBeHexadecimal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export function toBeHexadecimal(actual) {
2323
}
2424

2525
const longRegex = RegExp(/^#\b[a-f0-9]{6}\b/gi);
26-
const longRegexWithAlpha = RegExp(/^#\b[a-f0-9]{6}\b/gi);
26+
const longRegexWithAlpha = RegExp(/^#\b[a-f0-9]{8}\b/gi);
2727
const shortRegex = RegExp(/^#\b[a-f0-9]{3}\b/gi);
28-
const shortRegexWithAlpha = RegExp(/^#\b[a-f0-9]{6}\b/gi);
28+
const shortRegexWithAlpha = RegExp(/^#\b[a-f0-9]{4}\b/gi);

0 commit comments

Comments
 (0)