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.

.trim() functionality

See original GitHub issue

Hi) Would be great to have .trim() function in validation, like Yup has Or is there another way in nope-validator to do it right now?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ftonatocommented, May 27, 2022

From now on, @TolyaDeveloper you’re able to use the .trim() method on String based classes.

I will update the documentation in the Wiki later.

Please, update your package version to ^1.0.3 or @latest and everything should be there.

I created also an example repl-it to show exactly how to use it: https://replit.com/@ftonato/nope-validator103#index.js

0reactions
TolyaDevelopercommented, May 28, 2022

@ftonato, thanks 👌

Read more comments on GitHub >

github_iconTop Results From Across the Web

trim() Function - Rocket Software
The trim() function removes leading, trailing, and/or redundant characters from a string. ... If only one parameter is specified, trim() removes all leading...
Read more >
String.prototype.trim() - JavaScript - MDN Web Docs
The trim() method removes whitespace from both ends of a string and returns a new string, without modifying the original string.
Read more >
TRIM( ) function - HighBond
TRIM ( ) function. Returns a string with trailing spaces removed from the input string. On this page.
Read more >
TRIM function
TRIM is a function that takes a character expression and returns that expression with leading and/or trailing pad characters removed.
Read more >
PHP trim() Function - W3Schools
The trim() function removes whitespace and other predefined characters from both sides of a string. Related functions: ltrim() - Removes whitespace or other ......
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