@dhyasama/totem-models 6.21.6 → 6.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Organization.js +1 -1
- package/lib/Person.js +1 -1
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/package-lock.json +0 -1829
package/lib/Organization.js
CHANGED
|
@@ -1329,7 +1329,7 @@ module.exports = function(mongoose, config) {
|
|
|
1329
1329
|
if (pathname) { usernameMatch = usernameRegExp.exec(pathname); }
|
|
1330
1330
|
else { usernameMatch = usernameRegExp.exec(val); }
|
|
1331
1331
|
|
|
1332
|
-
if (usernameMatch
|
|
1332
|
+
if (!_.isEmpty(usernameMatch)) { username = usernameMatch[0]; }
|
|
1333
1333
|
|
|
1334
1334
|
console.log('Username:', val, '-->', username);
|
|
1335
1335
|
|
package/lib/Person.js
CHANGED
|
@@ -737,7 +737,7 @@ module.exports = function(mongoose, config) {
|
|
|
737
737
|
if (pathname) { usernameMatch = usernameRegExp.exec(pathname); }
|
|
738
738
|
else { usernameMatch = usernameRegExp.exec(val); }
|
|
739
739
|
|
|
740
|
-
if (usernameMatch
|
|
740
|
+
if (!_.isEmpty(usernameMatch)) { username = usernameMatch[0]; }
|
|
741
741
|
|
|
742
742
|
console.log('Username:', val, '-->', username);
|
|
743
743
|
|
package/package.json
CHANGED