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.

Remove leading and trailing spaces in title

See original GitHub issue

When adding new images through the app it happens that the caption ends with a space. This is then used for title/filename and produces ugly links. Please run a .trim() before uploading.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolas-raoulcommented, Oct 1, 2022

@shubhamshah14102 It is yours, thanks! Please let us know about your progress every few days 🙂

2reactions
NotSoImportantcommented, Aug 31, 2022

Sure, what do you want to know?

When using autocomplete to type a title, my keyboard will add a trailing whitespace (which is not obviously recognized by the user). When trying to upload it will fail or hang without any proper error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing Leading and Trailing Spaces in Excel & Google Docs
The most obvious (and generally efficient) method for removing both leading and trailing space is to use the TRIM() function. As stated in...
Read more >
How to remove leading and/or trailing spaces of a string in T ...
Use the TRIM function if you want to trim a string in a table. This function allows you to remove a specific character...
Read more >
TRIM: Removing Leading and Trailing Occurrences
The TRIM function removes leading and/or trailing occurrences of a pattern within a character string. ... The TITLE field has trailing spaces.
Read more >
5.12. Trim Leading and Trailing Whitespace - O'Reilly
Removing leading and trailing whitespace is a simple but common task. The regular expressions just shown contain three parts each: the shorthand character...
Read more >
How to remove leading and trailing spaces in Excel cells?
Method A: Remove all extra spaces from strings with the TRIM function (2 steps) Remove all excess spaces including extra space, leading and...
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