question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not remove whitespace after number

See original GitHub issue

Description

Whitespace after number have been removed, which will case an Uncaught SyntaxError: Invalid or unexpected token error.

Input

The code looked like this before beautification:

1000000000000000100 .toFixed(0)!=="1000000000000000128")

Expected Output

The code should have looked like this after beautification:

1000000000000000100 .toFixed(0) !== "1000000000000000128")

Actual Output

The code actually looked like this after beautification:

1000000000000000100.toFixed(0) !== "1000000000000000128")

Steps to Reproduce

Environment

OS:

Settings

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bitwisemancommented, Feb 5, 2022

@bhaveshvasnani Go ahead and work on it. It can’t hurt.

0reactions
bhaveshvasnanicommented, Feb 5, 2022

Thanks!! I’ll work on this and also agree that the fix should be in handle_dot() itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

removing white space in numbers when trim and clear doesn't ...
=SUBSTITUTE(A1," ",). works fine, trim and clear do not remove single spaces in the middle of a string. If your space is always...
Read more >
3 ways to remove spaces between words / numbers in Excel ...
3 quick ways to remove extra spaces between words or delete all spaces from Excel cells. You can use trim formula, Excel Find...
Read more >
How To Remove Spaces from a String In Python - DigitalOcean
You can use the replace() method to remove all the whitespace characters from the string, including from between words. Declare the string ...
Read more >
Pandas - Strip whitespace from Entire DataFrame
Parameter: By default it is none and if we do not pass any characters then it will remove leading and trailing whitespace from...
Read more >
How whitespace is handled by HTML, CSS, and in the DOM
They don't just disappear, however. Any whitespace characters that are outside of HTML elements in the original document are represented in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found