We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
markdown-draft-js/test/markdown-to-draft.spec.js
Line 372 in 0a8059c
0 is falsey in JS, so this will not match a mention at the start of an editor.
0
falsey
A better idea here would be to use something like:
if (!state.src || typeof state.pos !== 'number') {
A test case could then be added:
it('can handle editor beginning with block entity data', function () {
Alternatively, it could just be a second check in the existing test:
it('can handle block entity data', function () {
The text was updated successfully, but these errors were encountered:
If desired, I can submit a PR with this change
Sorry, something went wrong.
No branches or pull requests
markdown-draft-js/test/markdown-to-draft.spec.js
Line 372 in 0a8059c
0
isfalsey
in JS, so this will not match a mention at the start of an editor.A better idea here would be to use something like:
A test case could then be added:
Alternatively, it could just be a second check in the existing test:
The text was updated successfully, but these errors were encountered: