Skip to content

Keyframe selector validation #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 12, 2019

Conversation

raxbg
Copy link
Contributor

@raxbg raxbg commented Aug 23, 2019

The regex for validating keyframe selectors should be slightly different to cover the "n%" part.

@sabberworm
Copy link
Collaborator

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 3
           

See the complete overview on Codacy

@@ -26,7 +28,7 @@ public function __construct($iLineNo = 0) {
$this->aSelectors = array();
}

public static function parse(ParserState $oParserState) {
public static function parse(ParserState $oParserState, $oList = NULL) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -97,7 +97,7 @@ private static function parseListItem(ParserState $oParserState, CSSList $oList)
}
}
} else {
return DeclarationBlock::parse($oParserState);
return DeclarationBlock::parse($oParserState, $oList);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
$this->aSelectors[$iKey] = new Selector($mSelector);
} else {
if (!KeyframeSelector::isValid($mSelector)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sabberworm sabberworm merged commit 86fd609 into MyIntervals:master Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants