Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commitf15190a

Browse files
new line
1 parentf916e2e commitf15190a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/components/YamlEditor/YamlEditor.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function YamlEditor() {
4040
setValue(initialValue);
4141
validateAndSetAnnotations(initialValue);
4242
},[]);
43+
4344
functionvalidateAndSetAnnotations(yaml){
4445
try{
4546
constdoc=jsYaml.load(yaml,{strict:true});
@@ -86,6 +87,7 @@ export default function YamlEditor() {
8687
]);
8788
}
8889
}
90+
8991
functiongetLineNumber(yaml,instancePath){
9092
constlines=yaml.split("\n");
9193
constpathParts=instancePath.split("/").filter(Boolean);
@@ -128,6 +130,7 @@ export default function YamlEditor() {
128130

129131
returnlineNumber;
130132
}
133+
131134
functiononChange(newValue){
132135
setValue(newValue);
133136
validateAndSetAnnotations(newValue);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp