Lint and remove outdated comment
This commit is contained in:
parent
138cd39c36
commit
47925e394d
|
@ -3,7 +3,6 @@
|
|||
import { convertToJS } from "@budibase/string-templates"
|
||||
import { Input, Layout, Icon, Popover } from "@budibase/bbui"
|
||||
import { handlebarsCompletions } from "constants/completions"
|
||||
import { tick } from "svelte"
|
||||
|
||||
export let addHelper
|
||||
export let addBinding
|
||||
|
@ -154,7 +153,6 @@
|
|||
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div class="binding-side-panel">
|
||||
<Layout noPadding gap="S">
|
||||
{#if selectedCategory}
|
||||
|
|
|
@ -59,12 +59,6 @@
|
|||
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) => {
|
||||
if (!name?.length) {
|
||||
return "Name is required"
|
||||
|
|
Loading…
Reference in New Issue