3
0
mirror of https://github.com/Qortal/q-tube.git synced 2025-02-11 17:55:51 +00:00

Title Prefix no longer required

Vite Version updated in package.json
Removed duplicate character from titleFormatter in Misc.ts
This commit is contained in:
Qortal Dev 2024-01-17 08:44:30 -07:00
parent d838d4ad25
commit ba1f39268e
5 changed files with 563 additions and 231 deletions

View File

@ -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",
},
}

786
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View File

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

View File

@ -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;