fix: complete numeric input hints

This commit is contained in:
2026-09-03 19:51:29 +08:00
parent 57b5e203e8
commit 278949d3b1
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ test('all editable text inputs provide a user-facing placeholder', () => {
const template = source.match(/<template(?:\s[^>]*)?>([\s\S]*)<\/template>/)?.[1] ?? ''
const withoutComments = template.replace(/<!--[\s\S]*?-->/g, '')
const attributeContent = String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`
const tagPattern = new RegExp(`<el-input(?!-number)\\b${attributeContent}/?>|<(?:input|textarea)\\b${attributeContent}/?>`, 'g')
const tagPattern = new RegExp(`<el-input(?:-number)?\\b${attributeContent}/?>|<(?:input|textarea)\\b${attributeContent}/?>`, 'g')
for (const match of withoutComments.matchAll(tagPattern)) {
const tag = match[0]