summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2022-02-04 23:39:12 +0000
committerGravatar GitHub Actions <actions@github.com> 2022-02-04 23:39:12 +0000
commit539e4d55d808dccd73b213f6eda3afeec95e6dae (patch)
tree4d7accfd6f46773e2dad2d1bb2fd410db5587501
parent16d532fe1772a2c0880beda0f49883efb2469e44 (diff)
downloadastro-539e4d55d808dccd73b213f6eda3afeec95e6dae.tar.gz
astro-539e4d55d808dccd73b213f6eda3afeec95e6dae.tar.zst
astro-539e4d55d808dccd73b213f6eda3afeec95e6dae.zip
[ci] yarn format
-rw-r--r--packages/astro/src/runtime/server/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts
index 4217330bf..6fe61d827 100644
--- a/packages/astro/src/runtime/server/index.ts
+++ b/packages/astro/src/runtime/server/index.ts
@@ -11,7 +11,8 @@ export { createMetadata } from './metadata.js';
export { escapeHTML, unescapeHTML } from './escape.js';
const voidElementNames = /^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;
-const htmlBooleanAttributes = /^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i;
+const htmlBooleanAttributes =
+ /^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i;
const htmlEnumAttributes = /^(contenteditable|draggable|spellcheck|value)$/i;
// Note: SVG is case-sensitive!
const svgEnumAttributes = /^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i;
@@ -339,7 +340,7 @@ export function addAttribute(value: any, key: string) {
if (htmlEnumAttributes.test(key) || svgEnumAttributes.test(key)) {
return unescapeHTML(` ${key}="false"`);
}
- return ''
+ return '';
}
// compiler directives cannot be applied dynamically, log a warning and ignore.