We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe02c9c commit 6f222caCopy full SHA for 6f222ca
functions/datetime/strtotime.js
@@ -28,7 +28,7 @@ function strtotime (text, now) {
28
}
29
30
// Unecessary spaces
31
- text = text.trim()
+ text = text.replace(/^\s+|\s+$/g, '')
32
.replace(/\s{2,}/g, ' ')
33
.replace(/[\t\r\n]/g, '')
34
.toLowerCase();
0 commit comments