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.

Using comment syntax on a key containing a space truncates the key, removing the portion after the space

See original GitHub issue

Expected output

> e.extractFromCode('// i18n-extract This is odd, yo')
[ 'This is odd, yo' ]
> e.extractFromCode('/* i18n-extract This is odd, yo */')
[ 'This is odd, yo' ]

Actual Output

> e.extractFromCode('// i18n-extract This is odd, yo')
[ 'This' ]
> e.extractFromCode('/* i18n-extract This is odd, yo */')
[ 'This' ]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jun 6, 2017

Awesome! I’m releasing.

0reactions
jamtatcommented, Jun 7, 2017

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove trailing spaces automatically or with a shortcut
Windows, Linux: Ctrl + K , Ctrl + X; Mac: ⌘ + k , ⌘ + x . (I'm using Visual Studio Code ......
Read more >
How whitespace is handled by HTML, CSS, and in the DOM
This article explores when difficulties can occur, and looks at what can be done to mitigate resulting problems. What is whitespace? Whitespace ...
Read more >
Why does my shell script choke on whitespace or other ...
I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from...
Read more >
Remove Extra Spaces From a String in JavaScript or Node.js
This tutorial shows you how to remove extra spaces from a string. Removing extra spaces results in a string value where words are...
Read more >
TRUNCATE TABLE
Use the TRUNCATE TABLE statement to remove all rows from a table. ... Deallocates all space used by the removed rows except that...
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