{"record":{"id":"3837d9c0dc2b6af8","repo":"Semantic-Org/Semantic-UI","slug":"name-must-be-exactly-rulevalue","errorCode":null,"errorMessage":"{name} must be exactly \"{ruleValue}\"","messagePattern":"(.+?) must be exactly \"(.+?)\"","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/behaviors/form.js","lineNumber":1263,"sourceCode":"    url     : /(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})/i\n  },\n\n  text: {\n    unspecifiedRule  : 'Please enter a valid value',\n    unspecifiedField : 'This field'\n  },\n\n  prompt: {\n    empty                : '{name} must have a value',\n    checked              : '{name} must be checked',\n    email                : '{name} must be a valid e-mail',\n    url                  : '{name} must be a valid url',\n    regExp               : '{name} is not formatted correctly',\n    integer              : '{name} must be an integer',\n    decimal              : '{name} must be a decimal number',\n    number               : '{name} must be set to a number',\n    is                   : '{name} must be \"{ruleValue}\"',\n    isExactly            : '{name} must be exactly \"{ruleValue}\"',\n    not                  : '{name} cannot be set to \"{ruleValue}\"',\n    notExactly           : '{name} cannot be set to exactly \"{ruleValue}\"',\n    contain              : '{name} must contain \"{ruleValue}\"',\n    containExactly       : '{name} must contain exactly \"{ruleValue}\"',\n    doesntContain        : '{name} cannot contain  \"{ruleValue}\"',\n    doesntContainExactly : '{name} cannot contain exactly \"{ruleValue}\"',\n    minLength            : '{name} must be at least {ruleValue} characters',\n    length               : '{name} must be at least {ruleValue} characters',\n    exactLength          : '{name} must be exactly {ruleValue} characters',\n    maxLength            : '{name} cannot be longer than {ruleValue} characters',\n    match                : '{name} must match {ruleValue} field',\n    different            : '{name} must have a different value than {ruleValue} field',\n    creditCard           : '{name} must be a valid credit card number',\n    minCount             : '{name} must have at least {ruleValue} choices',\n    exactCount           : '{name} must have exactly {ruleValue} choices',\n    maxCount             : '{name} must have {ruleValue} or less choices'\n  },\n","sourceCodeStart":1245,"sourceCodeEnd":1281,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/behaviors/form.js#L1245-L1281","documentation":"Default prompt for the Semantic UI Form `isExactly` rule (settings.rules.isExactly, form.js:1435). Performs case-SENSITIVE equality between the value and `{ruleValue}`. Shown when they are not strictly equal (including case).","triggerScenarios":"`{type:'isExactly[Admin]'}` with input `admin`, `ADMIN`, or any different string.","commonSituations":"Case-sensitive confirmations (security codes, role names), users pasting with auto-correct changing case, or copy-paste introducing invisible characters.","solutions":["Type the exact expected string including case.","If case should not matter, switch to the `is` rule.","Normalize the value (e.g. strip zero-width chars) before validation.","Provide a custom `prompt`."],"exampleFix":"// before\nrules: [{ type: 'isExactly[Admin]' }]  // 'admin' fails\n\n// after\nrules: [{ type: 'isExactly[Admin]', prompt: 'Type exactly: Admin' }]","handlingStrategy":"validation","validationCode":"const expected = 'Admin';\nif ($field.val() !== expected) { /* warn */ }","typeGuard":"const matchesExactly = (v, t) => v === t;","tryCatchPattern":null,"preventionTips":["Strip zero-width/unicode lookalikes from pasted input before comparing.","Use is for case-insensitive matching.","Provide an explicit prompt so users know case matters."],"tags":["semantic-ui","form-validation","equality","case-sensitive","client-side"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}