Webpack build for branch master: bbd89585c6

This commit is contained in:
Travis CI 2017-03-10 02:01:03 +00:00
parent 63d5558899
commit 7d3fe12d10
2 changed files with 7 additions and 5 deletions

View file

@ -14050,9 +14050,11 @@ class RichEmbed {
if (this.fields.length >= 25) throw new RangeError('RichEmbeds may not exceed 25 fields.');
name = resolveString(name);
if (name.length > 256) throw new RangeError('RichEmbed field names may not exceed 256 characters.');
if (!/\S/.test(name)) throw new RangeError('RichEmbed field names may not be empty.');
value = resolveString(value);
if (value.length > 1024) throw new RangeError('RichEmbed field values may not exceed 1024 characters.');
this.fields.push({ name: String(name), value: value, inline });
if (!/\S/.test(value)) throw new RangeError('RichEmbed field values may not be empty.');
this.fields.push({ name, value, inline });
return this;
}

File diff suppressed because one or more lines are too long