mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
feat(string extraction): add attribute download-button-text
This commit is contained in:
1 parent
6c862d6a33
commit
12c821fafa
1 file changed
+1
-1
@@ -63,7 +63,7 @@ function processVueComponent(filePath, toolName) {
|
||||
|
||||
if (filePath.endsWith('.vue')) {
|
||||
// Regex to find label or placeholder attributes
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title))="([^"]+)"/g;
|
||||
regex = /(?<!:)((?:[a-z]+-)?(?:label|placeholder|title|download-button-text))="([^"]+)"/g;
|
||||
content = content.replace(regex, (match, attr, text) => {
|
||||
if (!text?.trim()) {
|
||||
return match;
|
||||
|
||||
Reference in new issue
Block a user