-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe Block Update Fix #21
Conversation
…ingDescribeFromControl.spec.ts Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
src/utilities/global.ts
Outdated
@@ -41,6 +41,11 @@ export function removeWhitespace(input: string): string { | |||
return input.replace(/\s/gi, '') | |||
} | |||
|
|||
const escapeSpecialCaseBackslashes = (s: string) => { | |||
//return s.replace(/\\\)/g, '\\\\)'); // Escape backslashes if preceding close parentheses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple comments, but looks good overall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done reviewing your comments.
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
Signed-off-by: George Dias <[email protected]>
} | ||
}); | ||
} | ||
|
||
if (this.impact) { | ||
result += ` impact ${this.impact}\n`; | ||
if (this.impact !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch
The
getExistingDescribeFromControl
return value needs to check if the last entry on the array is a blank line, it currently assumes that one exists, this causes invalid syntax being returned if there isn't a blank line at the end of the arrayUpdate the return with the following code
Happy Feet