diff --git a/src/lib/Setting/Pages/GlobalRegex.svelte b/src/lib/Setting/Pages/GlobalRegex.svelte index 7573076e..6e6b062e 100644 --- a/src/lib/Setting/Pages/GlobalRegex.svelte +++ b/src/lib/Setting/Pages/GlobalRegex.svelte @@ -2,23 +2,12 @@ import { DownloadIcon, FolderUpIcon, PlusIcon } from "lucide-svelte"; import { language } from "src/lang"; import Help from "src/lib/Others/Help.svelte"; - import RegexData from "src/lib/SideBars/RegexData.svelte"; import { DataBase } from "src/ts/storage/database"; import { exportRegex, importRegex } from "src/ts/process/scripts"; + import RegexList from "src/lib/SideBars/Regex/RegexList.svelte";

{language.globalRegexScript}

- - {#if $DataBase.globalscript.length === 0} -
No Scripts
- {/if} - {#each $DataBase.globalscript as customscript, i} - { - let customscript = $DataBase.globalscript - customscript.splice(i, 1) - $DataBase.globalscript = customscript - }}/> - {/each} -
+
{language.regexScript} -
- - {#if currentChar.data.customscript.length === 0} -
No Scripts
- {/if} - {#each currentChar.data.customscript as customscript, i} - { - if(currentChar.type === 'character'){ - let customscript = currentChar.data.customscript - customscript.splice(i, 1) - currentChar.data.customscript = customscript - } - }}/> - {/each} -
-
+