Skip to content

Commit

Permalink
Update src/utils/cmakeUtil.mts
Browse files Browse the repository at this point in the history
Co-authored-by: will-v-pi <[email protected]>
  • Loading branch information
NickGuyver and will-v-pi authored Oct 15, 2024
1 parent 80cf850 commit 64ce5ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/cmakeUtil.mts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ export async function cmakeUpdateSDK(
const cmakeFilePath = join(folder.fsPath, "CMakeLists.txt");
// This regex requires multiline (m) and dotall (s) flags to work
const updateSectionRegex = new RegExp(
`^# (${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}|${CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD}).*# =+$`,
`^# (${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}` +
`|${CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD}).*# =+$`,
"ms"
);
const picoBoardRegex = /^set\(PICO_BOARD\s+([^)]+)\)$/m;
Expand Down

0 comments on commit 64ce5ef

Please sign in to comment.