Skip to content

Commit

Permalink
Better input selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu2301 committed Jun 10, 2022
1 parent ae22186 commit cd5957f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/miscRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,12 @@ module.exports = {
data.result.metaInfo.inputs.forEach((input) => {
if (['text', 'pineId', 'pineVersion'].includes(input.id)) return;

const inlineName = input.name.replace(/ /g, '_').replace(/[^a-zA-Z0-9_]/g, '');

inputs[input.id] = {
name: input.name,
inline: input.inline || input.name.replace(/ /g, '_').replace(/[^a-zA-Z0-9_]/g, ''),
internalID: input.internalID,
inline: input.inline || inlineName,
internalID: input.internalID || inlineName,
tooltip: input.tooltip,

type: input.type,
Expand Down

0 comments on commit cd5957f

Please sign in to comment.