Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
IPdotSetAF committed Jan 19, 2025
1 parent a5ee8a0 commit c1d45be
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ ${res.map((p) => `\tpublic ${MssqlScaffolderComponent.convertDataType(p.DataType
}).subscribe(vals => {
const spDef = (vals.params as SPDefinition[])[0].definition;
const spUpper = spDef.toUpperCase();

const ps = [...(spDef.substring(spUpper.indexOf("CREATE PROCEDURE"), spUpper.indexOf("AS"))
const ps = [...(spDef.substring(spUpper.indexOf("CREATE PROCEDURE"), spUpper.search(/^ *AS *\r\n/gmi))
.matchAll(/@(?<name>\w+) +(?<type>\w+(\(.*\)){0,1}) *=* *(?<nul>(NULL){0,1})/gmi))].map(match => {
if (match.groups)
return {
Expand Down

0 comments on commit c1d45be

Please sign in to comment.