Browse Source

Title Prefix no longer required

Vite Version updated in package.json
Removed duplicate character from titleFormatter in Misc.ts
pull/4/head
Qortal Dev 8 months ago
parent
commit
ba1f39268e
  1. 3
      .eslintrc.js
  2. 794
      package-lock.json
  3. 2
      package.json
  4. 1
      src/components/PublishVideo/PublishVideo.tsx
  5. 2
      src/constants/Misc.ts

3
.eslintrc.js

@ -10,7 +10,6 @@ module.exports = {
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': 'warn',
'@typescript-eslint/no-explicit-any': "off"
'@typescript-eslint/no-explicit-any': "off",
},
}

794
package-lock.json generated

File diff suppressed because it is too large Load Diff

2
package.json

@ -42,6 +42,6 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"typescript": "^5.0.2",
"vite": "^4.3.2"
"vite": "^5.0.5"
}
}

1
src/components/PublishVideo/PublishVideo.tsx

@ -696,7 +696,6 @@ export const PublishVideo = ({ editId, editContent }: NewCrowdfundProps) => {
setTitlesPrefix(e.target.value.replace(titleFormatter, ""))
}
inputProps={{ maxLength: 180 }}
required
/>
<Box
{...getRootProps()}

2
src/constants/Misc.ts

@ -1,2 +1,2 @@
export const minPriceSuperlike = 10;
export const titleFormatter = /[^a-zA-Z0-9\s-_!?()&'",.;:|—~@#$%^&*+=]/g;
export const titleFormatter = /[^a-zA-Z0-9\s-_!?()&'",.;:|—~@#$%^*+=]/g;

Loading…
Cancel
Save