MCPcopy Create free account
hub / github.com/cryptii/cryptii / setUniqueChars

Method setUniqueChars

src/Field/Text.js:148–154  ·  view source on GitHub ↗

* Sets wether value characters need to be unique. * @param {boolean} uniqueChars Character uniqueness * @param {boolean} [revalidate=true] Wether to revalidate current value * @return {TextField} Fluent interface

(uniqueChars, revalidate = true)

Source from the content-addressed store, hash-verified

146 * @return {TextField} Fluent interface
147 */
148 setUniqueChars (uniqueChars, revalidate = true) {
149 if (this._uniqueChars === uniqueChars) {
150 return this
151 }
152 this._uniqueChars = uniqueChars
153 return revalidate ? this.revalidateValue() : this
154 }
155
156 /**
157 * Returns wether to respect case sensitivity.

Callers 1

constructorMethod · 0.95

Calls 1

revalidateValueMethod · 0.80

Tested by

no test coverage detected