Closed wgkassem closed 1 year ago
Assigns 0 to offset values that were returned as nil from string.match() i.e. no diff_directive was found or was empty string.
nil
string.match()
diff_directive
Fixes #382
Set right_offset and left_offset to 0 if values are equal to nil
right_offset
left_offset
0
Tested on a personal repo
Thank you!
Describe what this PR does / why we need it
Assigns 0 to offset values that were returned as
nil
fromstring.match()
i.e. nodiff_directive
was found or was empty string.Does this pull request fix one issue?
Fixes #382
Describe how you did it
Set
right_offset
andleft_offset
to0
if values are equal tonil
Describe how to verify it
Tested on a personal repo
Special notes for reviews