Skip to content

Commit 1e44ce5

Browse files
committed
Fix: Allow "current" in addition to "present" and "now".
1 parent 9de5069 commit 1e44ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/fluent-date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function FluentDate( dt ) {
2828
FluentDate/*.prototype*/.fmt = function( dt ) {
2929
if( (typeof dt === 'string' || dt instanceof String) ) {
3030
dt = dt.toLowerCase().trim();
31-
if( /^(present|now)$/.test(dt) ) { // "Present", "Now"
31+
if( /^(present|now|current)$/.test(dt) ) { // "Present", "Now"
3232
return moment();
3333
}
3434
else if( /^\D+\s+\d{4}$/.test(dt) ) { // "Mar 2015"

0 commit comments

Comments
 (0)