Skip to content

Commit 0562bfe

Browse files
committed
move code
1 parent f6fcf4c commit 0562bfe

File tree

1 file changed

+1
-2
lines changed
  • packages/svelte/src/compiler/phases/1-parse/state

1 file changed

+1
-2
lines changed

packages/svelte/src/compiler/phases/1-parse/state/element.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ function read_tag_name(parser) {
382382
// eslint-disable-next-line no-useless-escape
383383
const regex_token_ending_character = /[\s=\/>"']/;
384384
const regex_starts_with_quote_characters = /^["']/;
385+
const regex_attribute_value = /^(?:"([^"]*)"|'([^'])*'|([^>\s]))/;
385386

386387
/**
387388
* @param {import('../index.js').Parser} parser
@@ -604,8 +605,6 @@ function get_directive_type(name) {
604605
return false;
605606
}
606607

607-
const regex_attribute_value = /^(?:"([^"]*)"|'([^'])*'|([^>\s]))/;
608-
609608
/**
610609
* @param {import('../index.js').Parser} parser
611610
*/

0 commit comments

Comments
 (0)