Lint and remove outdated comment

This commit is contained in:
Andrew Kingston 2024-03-13 16:20:18 +00:00
parent 138cd39c36
commit 47925e394d
2 changed files with 0 additions and 8 deletions

View File

@ -3,7 +3,6 @@
import { convertToJS } from "@budibase/string-templates" import { convertToJS } from "@budibase/string-templates"
import { Input, Layout, Icon, Popover } from "@budibase/bbui" import { Input, Layout, Icon, Popover } from "@budibase/bbui"
import { handlebarsCompletions } from "constants/completions" import { handlebarsCompletions } from "constants/completions"
import { tick } from "svelte"
export let addHelper export let addHelper
export let addBinding export let addBinding
@ -154,7 +153,6 @@
<!-- svelte-ignore a11y-click-events-have-key-events --> <!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions --> <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="binding-side-panel"> <div class="binding-side-panel">
<Layout noPadding gap="S"> <Layout noPadding gap="S">
{#if selectedCategory} {#if selectedCategory}

View File

@ -59,12 +59,6 @@
loading = false loading = false
} }
// Validating function names is not as easy as you think. A simple regex does
// not work, as there are a bunch of reserved words. The correct regex for
// this is about 12K characters long.
// Instead, we can run a simple regex to roughly validate it, then basically
// try executing it and see if it's valid JS. The initial regex prevents
// against any potential XSS attacks here.
const validateName = (name, snippets) => { const validateName = (name, snippets) => {
if (!name?.length) { if (!name?.length) {
return "Name is required" return "Name is required"