Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 4b9f98f

Browse files
committed
added regex
1 parent f8a7400 commit 4b9f98f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

config.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ steps:
182182
action_id: fileContents
183183
filename: 'src/App.jsx'
184184
- type: gate
185-
left: '/^\s*if\s*\(this\.state\.buttonClicked\s*===\s*"assignments"\)[^*/]$/gm'
185+
left: '/^\s*if\s*\(this\.state\.buttonClicked\s*===\s*"assignments"\)\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n\s*}\s*\n/gm'
186186
operator: test
187187
right: '%actions.fileContents%'
188188
else:
@@ -294,6 +294,17 @@ steps:
294294
- type: getPullRequest
295295
pullRequest: Changes
296296
action_id: metaPR2
297+
- type: getFileContents
298+
action_id: fileContents
299+
filename: 'src/App.jsx'
300+
- type: gate
301+
left: '/^\s*this\.addStudent\s*=\s*this\.addStudent\.bind\s*\(\s*this\s*\)\s*;\s*\n/gm'
302+
operator: test
303+
right: '%actions.fileContents%'
304+
else:
305+
- type: respond
306+
with: bad-uncomment.md
307+
issue: Changes
297308
- type: respond
298309
with: 04-callbackfunctions.md
299310
issue: Changes

0 commit comments

Comments
 (0)