Skip to content

Commit 42eae5c

Browse files
committed
Index: trim white space from argument names
1 parent b7ffc26 commit 42eae5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Object.getOwnPropertyNames(Globalize).forEach(function(fn) {
1111
var formatter = function(nextProps) {
1212
var componentProps = nextProps || this.props;
1313
var propArgs = currentArgs.map(function(element) {
14-
return componentProps[element.replace(/(\s\/\*|\*\/)/,'')];
14+
return componentProps[element.replace(/(\s\/\*|\*\/)/,'').trim()];
1515
});
1616

1717
Globalize.locale( componentProps["locale"] );

0 commit comments

Comments
 (0)