Skip to content

Commit

Permalink
Change to regex to match any whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Jun 1, 2020
1 parent 33d2cfe commit 738afc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baseframe/static/js/baseframe-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ window.Baseframe.MapMarker.prototype.getDefaultLocation = function () {
window.Baseframe.Utils = {
getInitials: function (name) {
if (name) {
var parts = name.split(' ');
var parts = name.split(/\s+/);
var len = parts.length;
if (len > 1) {
return (
Expand Down
2 changes: 1 addition & 1 deletion baseframe/static/js/baseframe-material.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ window.Baseframe.MapMarker.prototype.getDefaultLocation = function () {
window.Baseframe.Utils = {
getInitials: function (name) {
if (name) {
var parts = name.split(' ');
var parts = name.split(/\s+/);
var len = parts.length;
if (len > 1) {
return (
Expand Down

0 comments on commit 738afc1

Please sign in to comment.