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

Changed whitespace regex -> /s+. #877

Merged
merged 3 commits into from
Mar 10, 2022
Merged

Changed whitespace regex -> /s+. #877

merged 3 commits into from
Mar 10, 2022

Conversation

MartinDawson
Copy link
Contributor

@MartinDawson MartinDawson commented Dec 17, 2021

Context

A crazy bug I just ran into caused by this.

In our spreadsheet we use a contentEditable div. We parse the text using chevrotain's lexer to find the cells to highlight. Like so:

image

When we access the content using .textContent it seems to replace all spaces with non-breaking spaces.

This should be fine because hyperformula should replace ANY space. However it's missing non-breaking spaces from the regex:

pattern: /[ \t\n\r]+/

Hyperformula's lexer was returning #ERROR! due to this.

So it should be /s+ instead.

How has this been tested?

See the spec test.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I described the modification in the CHANGELOG.md file.

@MartinDawson
Copy link
Contributor Author

MartinDawson commented Dec 21, 2021

Is their plans to more actively maintain this repository now woj is not doing it? As woj was very fast with feedback and PR's/issues.

Because we have branches/PR's that are becoming backlogged off each other and maintaining them will be a pain if stuff is not getting merged or feedback given as this is a tiny PR...

If not then I think we will just develop in our own repo instead and not try and keep in sync with this main repo.

@warpech
Copy link
Member

warpech commented Dec 21, 2021

I am sorry to have disappointed you by not reviewing your PR within a few days. The project is actively maintained within our capacity and roadmap. We will be happy to review this when we come to it.

@MartinDawson MartinDawson deleted the fix-white-space-bug branch December 22, 2021 10:05
@MartinDawson MartinDawson restored the fix-white-space-bug branch December 22, 2021 13:36
@MartinDawson MartinDawson reopened this Dec 22, 2021
@warpech
Copy link
Member

warpech commented Jan 10, 2022

We have assigned a developer to work on accepting your PR and fixing other bugs starting from February.

@warpech
Copy link
Member

warpech commented Feb 10, 2022

According to the Contributing guide we need the PR author to approve the CLA at https://docs.google.com/forms/d/e/1FAIpQLScpMq4swMelvw3-onxC8Jl29m0fVp5hpf7d1yQVklqVjGjWGA/viewform?c=0&w=1. @MartinDawson could you please do that so that we can proceed with your PRs?

@sequba
Copy link
Contributor

sequba commented Mar 1, 2022

@MartinDawson I want to merge your PR. Could you resolve the conflicts, please?

@sequba sequba changed the base branch from develop to feature/issue-898/resolve-conflicts March 10, 2022 17:55
@sequba sequba changed the base branch from feature/issue-898/resolve-conflicts to develop March 10, 2022 18:11
@sequba sequba changed the base branch from develop to feature/issue-898/resolve-conflicts March 10, 2022 18:18
@sequba sequba force-pushed the feature/issue-898/resolve-conflicts branch from 03954c1 to 40b9578 Compare March 10, 2022 18:24
@sequba sequba merged commit 056678a into handsontable:feature/issue-898/resolve-conflicts Mar 10, 2022
@sequba
Copy link
Contributor

sequba commented Mar 15, 2022

These changes have been merged into feature/issue-898/resolve-conflicts and will proceed into develop via second PR: #935

sequba added a commit that referenced this pull request Mar 31, 2022
…eWhiteSpace)

* Changed whitespace regex to `/s+` (#877)
* Changed whitespace regex -> /s+.
* updated CHANGELOG.MD
* Add test for unparsing non-break space character
* Introduce config param ignoreWhiteSpace
* Fix eslint warning
* Change the config parameter ignoreWhiteSpace from boolean to 'standard' | 'any'

Co-authored-by: Martin Alex Philip Dawson <u1356770@gmail.com>
@AMBudnik
Copy link
Contributor

Hi @MartinDawson I'm the lucky one to announce that the proposed changes, further developed by @sequba and merged to develop via the following PR #935 are published under Hyperformula v2.0.0 released today. Thank you so much for your feedback and the time to share your thoughts.

Here #964 is the full list of changes for HyperFormula v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed Required for PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants