Enable unicorn/prefer-regexp-test (#10045)
This commit is contained in:
1 parent
28f6e0f2bd
commit
0009e0d276
6 files changed
+6
-5
No files matched your search
@@ -23,7 +23,7 @@ window.addEventListener("load", () => {
|
||||
logoWrapper.addEventListener("dragstart", handleLogoDrag);
|
||||
|
||||
lastDash.addEventListener("animationend", (event) => {
|
||||
if (event.animationName.match(/roll/)) {
|
||||
if (/roll/.test(event.animationName)) {
|
||||
logo.classList.remove("rolling");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user