Skip to content

Commit 64ce5ef

Browse files
Update src/utils/cmakeUtil.mts
Co-authored-by: will-v-pi <[email protected]>
1 parent 80cf850 commit 64ce5ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/cmakeUtil.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ export async function cmakeUpdateSDK(
336336
const cmakeFilePath = join(folder.fsPath, "CMakeLists.txt");
337337
// This regex requires multiline (m) and dotall (s) flags to work
338338
const updateSectionRegex = new RegExp(
339-
`^# (${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}|${CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD}).*# =+$`,
339+
`^# (${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}` +
340+
`|${CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD}).*# =+$`,
340341
"ms"
341342
);
342343
const picoBoardRegex = /^set\(PICO_BOARD\s+([^)]+)\)$/m;

0 commit comments

Comments
 (0)