Clarify documentation

This commit is contained in:
Pieter Vander Vennet 2025-03-05 14:02:39 +01:00
parent 3468837e0b
commit 8327066a3c

View file

@ -1,11 +1,10 @@
import StringValidator from "./StringValidator" import StringValidator from "./StringValidator"
import { s } from "vitest/dist/env-afee91f0"
import { Translation } from "../../i18n/Translation" import { Translation } from "../../i18n/Translation"
import Translations from "../../i18n/Translations" import Translations from "../../i18n/Translations"
export default class RegexValidator extends StringValidator { export default class RegexValidator extends StringValidator {
constructor() { constructor() {
super("regex", "Validates a regex") super("regex", "Only used when your input should be a valid regex. This validator is only used as helper for Studio and should not be used in a mapcomplete-theme.")
} }
getFeedback(s: string): Translation | undefined { getFeedback(s: string): Translation | undefined {