Skip to content

Commit

Permalink
accept any non-empty token
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT committed Aug 28, 2024
1 parent b3238ed commit 9f759ed
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/AutoTagForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,8 @@ export default class AutoTagForm extends React.Component {
return false;
}

// Reject tokens that are just numbers and/or symbols
if ( /^([0-9-\;\.\(\)]+)$/.test(tokenValue) ) {
return false;
}

// Accept any combination of letters, numbers and symbols
if ( /^([\s\-_A-Za-z0-9-\;\.\(\)]+)$/.test(tokenValue) ) {
return true;
}

// Reject anything else
return false;

// Accept anything else
return true;
}

addOrUpdateToken(image, tagValuesMap, tokenMap, value) {
Expand Down

0 comments on commit 9f759ed

Please sign in to comment.