MCPcopy Index your code
hub / github.com/json-editor/json-editor / getValidId

Method getValidId

src/editor.js:767–770  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

765
766 /* Replace space(s) with "-" to create valid id value */
767 getValidId (id) {
768 id = id === undefined ? '' : id.toString()
769 return id.replace(/\s+/g, '-')
770 }
771
772 setInputAttributes (inputAttribute, input) {
773 if (this.schema.options && this.schema.options.inputAttributes) {

Callers 5

layoutEditorsMethod · 0.80
addTabMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
addRowMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected