Skip to content
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

[INTERNAL] Improve diffing algorithm #99

Closed
wants to merge 3 commits into from

Conversation

tobiasso85
Copy link
Contributor

Diffing algorithm now handles:

  • position of comments in different order
  • base having more rules than compare

Diffing algorithm now handles:
* position of comments in different order
* base having more rules than compare
Comments should be ignored when comparing
@tobiasso85 tobiasso85 requested a review from matz3 November 7, 2019 14:59
@tobiasso85 tobiasso85 self-assigned this Nov 7, 2019
lib/diff.js Outdated

for (; iBaseNode < oBaseRules.length; iBaseNode++) {
if (oBaseRules[iBaseNode]) {
this.oStack.stylesheet.rules.push(oBaseRules[iBaseNode]);
Copy link
Member

Choose a reason for hiding this comment

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

Afaik only the compareRules should be added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@tobiasso85 tobiasso85 requested a review from matz3 November 7, 2019 16:20
@tobiasso85
Copy link
Contributor Author

closed because #104 already fixes this issue.

@tobiasso85 tobiasso85 closed this Nov 26, 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