Skip to content

Commit

Permalink
Add comment to updateSectionRegex about flags
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Aug 23, 2024
1 parent e3ae7c7 commit c2d6918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/cmakeUtil.mts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export async function cmakeUpdateSDK(
): Promise<boolean> {
// TODO: support for scaning for seperate locations of the CMakeLists.txt file in the project
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}.*# =+$`, "ms");
const picoBoardRegex = /^set\(PICO_BOARD\s+([^)]+)\)$/m;
Expand Down

0 comments on commit c2d6918

Please sign in to comment.