Skip to content
Snippets Groups Projects
Unverified Commit 66db519d authored by y-yagi's avatar y-yagi Committed by GitHub
Browse files

fix(circleci): correctly get a Orb name when a line has an inline comment (#27736)

parent 6b065554
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ orbs:
no-version: abc/def
# Comments help me understand my work.
volatile: zzz/zzz@volatile
volatile: zzz/zzz@volatile # Comments help me understand my work.
test_plan: &test_plan
steps:
......
......@@ -29,7 +29,9 @@ export function extractPackageFile(
lineNumber += 1;
continue;
}
const orbMatch = regEx(/^\s+([^:]+):\s(.+)$/).exec(orbLine);
const orbMatch = regEx(/^\s+([^:]+):\s(.+?)(?:\s*#.*)?$/).exec(
orbLine,
);
if (orbMatch) {
logger.trace('orbMatch');
foundOrbOrNoop = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment