diff --git a/test/regex-shorthand.js b/test/regex-shorthand.js
index <HASH>..<HASH> 100644
--- a/test/regex-shorthand.js
+++ b/test/regex-shorthand.js
@@ -32,7 +32,8 @@ ruleTester.run('regex-shorthand', rule, {
 		`const foo = new RegExp(/\\d/ig)`,
 		`const foo = new RegExp(/\\d/, 'ig')`,
 		`const foo = new RegExp(/\\d*?/)`,
-		`const foo = new RegExp(/[a-z]/, 'i')`
+		`const foo = new RegExp(/[a-z]/, 'i')`,
+		`const foo = new RegExp(/^[^*]*[*]?$/)`
 	],
 	invalid: [
 		{
Add another test for `regex-shorthand` rule