mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-26 13:18:44 +08:00
typo
This commit is contained in:
@@ -75,7 +75,7 @@ export const defaultConfig = {
|
||||
customChatGptWebApiPath: '/backend-api/conversation',
|
||||
customOpenAiApiUrl: 'https://api.openai.com',
|
||||
siteRegex: 'match nothing',
|
||||
userSiteRegexOnly: false,
|
||||
useSiteRegexOnly: false,
|
||||
inputQuery: '',
|
||||
appendQuery: '',
|
||||
prependQuery: '',
|
||||
|
||||
@@ -267,7 +267,7 @@ async function prepareForRightClickMenu() {
|
||||
|
||||
async function prepareForStaticCard() {
|
||||
let siteRegex
|
||||
if (userConfig.userSiteRegexOnly) siteRegex = userConfig.siteRegex
|
||||
if (userConfig.useSiteRegexOnly) siteRegex = userConfig.siteRegex
|
||||
else
|
||||
siteRegex = new RegExp(
|
||||
(userConfig.siteRegex && userConfig.siteRegex + '|') + Object.keys(siteConfig).join('|'),
|
||||
|
||||
+2
-2
@@ -297,10 +297,10 @@ function AdvancedPart({ config, updateConfig }) {
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={config.userSiteRegexOnly}
|
||||
checked={config.useSiteRegexOnly}
|
||||
onChange={(e) => {
|
||||
const checked = e.target.checked
|
||||
updateConfig({ userSiteRegexOnly: checked })
|
||||
updateConfig({ useSiteRegexOnly: checked })
|
||||
}}
|
||||
/>
|
||||
{t('Exclusively use Custom Site Regex for website matching, ignoring built-in rules')}
|
||||
|
||||
Reference in New Issue
Block a user