Chore: remove deprecated method

This commit is contained in:
Pieter Vander Vennet 2024-10-08 13:49:13 +02:00
parent 1ade2ed45b
commit 96265a55c8

View file

@ -39,10 +39,10 @@ export abstract class Validator {
this.inputmode = inputmode
this.textArea = textArea ?? false
if (this.name.endsWith("textfield")) {
this.name = this.name.substr(0, this.name.length - "TextField".length)
this.name = this.name.substring(0, this.name.length - "TextField".length)
}
if (this.name.endsWith("textfielddef")) {
this.name = this.name.substr(0, this.name.length - "TextFieldDef".length)
this.name = this.name.substring(0, this.name.length - "TextFieldDef".length)
}
if (typeof explanation === "string") {
this.explanation = explanation