Using comment syntax on a key containing a space truncates the key, removing the portion after the space
See original GitHub issueExpected 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Awesome! I’m releasing.
Thanks!