OK, very good..........Thanks for the picture and the confirmation.
1) You will need to make a permanent splice using some plastic wire nuts and install an accessible junction box with a cover plate to correct the problem. Looks like you may have a sufficient amount of cable slack based on the picture?
All electrical splices must reside within an accessible electrical box. DO NOT just make a splice in the ceiling using wire nuts as this will create a code violation as well as a potential safety issue.
2) If there is not a sufficient amount of cable slack in the ceiling, you will need to install (2) two junction boxes for the splices and cut off a section of new 14/2 NM Romex cable to make the repair. If not enough cable slack, you will need to make (2) two splices using (2) two junction boxes. If using a metal junction box for the splices, the bare equipment ground wire must be grounded to the metal box. Splice the bare copper wires together along with a 6 inch bare piece of 14 AWG copper wire to make a pigtail. Then terminate the bare copper 14 AWG copper pigtail wire to a green ground screw and secure the ground screw to each metal junction box for proper grounding.
If you have any additional questions, just let me know and I’ll be glad to answer them for you.
Otherwise, don’t forget to rate me before you log Off.