toggle-components-library 1.25.0 → 1.25.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -122,22 +122,22 @@ export default {
122
122
  * Concat message for count characters
123
123
  * @return string
124
124
  */
125
- messageLength(count, maxLenght)
125
+ messageLength(msg, maxLength)
126
126
  {
127
- let message = count;
127
+ let message = msg;
128
128
  let mcount = 0;
129
129
 
130
130
  // If the emoji flag is set, make sure the character count takes account of the decoded emoji characters (this will include £ signs)
131
- if (this.includeEmojiEntitiesInCharCount && count) {
131
+ if (this.includeEmojiEntitiesInCharCount && msg) {
132
132
 
133
- let message = this.convertEmojis(count)
134
- mcount = message ? this.convertEmojis(message).length : 0;
133
+ message = this.convertEmojis(msg);
134
+ mcount = message ? message.length : 0;
135
135
 
136
136
  } else {
137
137
  mcount = message ? message.length : 0;
138
138
  }
139
139
 
140
- return mcount+' / '+maxLenght;
140
+ return mcount+' / '+maxLength;
141
141
  },
142
142
 
143
143
  onFocus() {