Skip to content

Commit

Permalink
fix for .NET Isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
scale-tone committed Mar 6, 2024
1 parent 86b1157 commit 5008585
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/dist/functionProjectCodeParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var FunctionProjectCodeParser = /** @class */ (function (_super) {
});
};
FunctionProjectCodeParser.prototype.getFunctionStartRegex = function (funcName) {
return new RegExp("FunctionName(Attribute)?\\s*\\(\\s*(nameof\\s*\\(\\s*|[\"'`]|[\\w\\s\\.]+\\.\\s*)" + funcName + "\\s*[\"'`\\)]{1}");
return new RegExp("Function(Name)?(Attribute)?\\s*\\(\\s*(nameof\\s*\\(\\s*|[\"'`]|[\\w\\s\\.]+\\.\\s*)" + funcName + "\\s*[\"'`\\)]{1}");
};
FunctionProjectCodeParser.prototype.getFunctionAttributeRegex = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion core/dist/functionProjectParserBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ var FunctionProjectParserBase = /** @class */ (function () {
};
};
FunctionProjectParserBase.prototype.getStartNewOrchestrationRegex = function (orchName) {
return new RegExp("(StartNew|StartNewAsync|start_new|scheduleNewOrchestrationInstance)(\\s*<[\\w\\.-\\[\\]\\<\\>,\\s]+>)?\\s*\\(\\s*([\"'`]|nameof\\s*\\(\\s*[\\w\\.-]*|[\\w\\s\\.]+\\.\\s*)" + orchName + "\\s*[\"'\\),]{1}", 'i');
return new RegExp("(StartNew|StartNewAsync|start_new|scheduleNewOrchestrationInstance|scheduleNewOrchestrationInstanceAsync)(\\s*<[\\w\\.-\\[\\]\\<\\>,\\s]+>)?\\s*\\(\\s*([\"'`]|nameof\\s*\\(\\s*[\\w\\.-]*|[\\w\\s\\.]+\\.\\s*)" + orchName + "\\s*[\"'\\),]{1}", 'i');
};
FunctionProjectParserBase.prototype.getCallSubOrchestratorRegex = function (subOrchName) {
return new RegExp("(CallSubOrchestrator|CallSubOrchestratorWithRetry|call_sub_orchestrator)(Async)?(\\s*<[\\w\\.-\\[\\]\\<\\>,\\s]+>)?\\s*\\(\\s*([\"'`]|nameof\\s*\\(\\s*[\\w\\.-]*|[\\w\\s\\.]+\\.\\s*)" + subOrchName + "\\s*[\"'\\),]{1}", 'i');
Expand Down
2 changes: 1 addition & 1 deletion core/functionProjectCodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export abstract class FunctionProjectCodeParser extends FunctionProjectParserBas
protected abstract traverseProjectCode(projectFolder: string): Promise<FunctionsMap>;

protected getFunctionStartRegex(funcName: string): RegExp {
return new RegExp(`FunctionName(Attribute)?\\s*\\(\\s*(nameof\\s*\\(\\s*|["'\`]|[\\w\\s\\.]+\\.\\s*)${funcName}\\s*["'\`\\)]{1}`)
return new RegExp(`Function(Name)?(Attribute)?\\s*\\(\\s*(nameof\\s*\\(\\s*|["'\`]|[\\w\\s\\.]+\\.\\s*)${funcName}\\s*["'\`\\)]{1}`)
}

protected getFunctionAttributeRegex(): RegExAndPos {
Expand Down
2 changes: 1 addition & 1 deletion core/functionProjectParserBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export abstract class FunctionProjectParserBase {
}

protected getStartNewOrchestrationRegex(orchName: string): RegExp {
return new RegExp(`(StartNew|StartNewAsync|start_new|scheduleNewOrchestrationInstance)(\\s*<[\\w\\.-\\[\\]\\<\\>,\\s]+>)?\\s*\\(\\s*(["'\`]|nameof\\s*\\(\\s*[\\w\\.-]*|[\\w\\s\\.]+\\.\\s*)${orchName}\\s*["'\\),]{1}`, 'i');
return new RegExp(`(StartNew|StartNewAsync|start_new|scheduleNewOrchestrationInstance|scheduleNewOrchestrationInstanceAsync)(\\s*<[\\w\\.-\\[\\]\\<\\>,\\s]+>)?\\s*\\(\\s*(["'\`]|nameof\\s*\\(\\s*[\\w\\.-]*|[\\w\\s\\.]+\\.\\s*)${orchName}\\s*["'\\),]{1}`, 'i');
}

protected getCallSubOrchestratorRegex(subOrchName: string): RegExp {
Expand Down

0 comments on commit 5008585

Please sign in to comment.