Enable unicorn/prefer-regexp-test (#10045)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-01-12 20:37:05 +08:00
1 parent 28f6e0f2bd
commit 0009e0d276
6 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -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");
}
});