-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Detect keyword 'linear' on lines containing word 'animation' too #10989
Detect keyword 'linear' on lines containing word 'animation' too #10989
Conversation
@@ -42,7 +42,7 @@ define(function (require, exports, module) { | |||
BEZIER_CURVE_GENERAL_REGEX = /cubic-bezier\((.*)\)/, | |||
EASE_STRICT_REGEX = /[: ,]ease(?:-in)?(?:-out)?[ ,;]/, | |||
EASE_LAX_REGEX = /ease(?:-in)?(?:-out)?/, | |||
LINEAR_STRICT_REGEX = /transition.*?[: ,]linear[ ,;]/, | |||
LINEAR_STRICT_REGEX = /transition|animation.*?[: ,]linear[ ,;]/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually be between parenthesis, like this: (transition|animation).*?[: ,]linear[ ,;]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are correct there, don't remember what I was thinking there!
Could you also add a unit test for this? |
@marcelgerber for the unit tests, should these tests be just repeated with the |
It's probably enough to just repeat one or two unit tests with the |
Added the unit tests |
Thanks! |
Detect keyword 'linear' on lines containing word 'animation' too
👍 awesome |
Fixes #10984