(string1, string2)
| 876 | } |
| 877 | |
| 878 | function join (string1, string2) { |
| 879 | var separator = separatingNewlines(string1, string2); |
| 880 | |
| 881 | // Remove trailing/leading newlines and replace with separator |
| 882 | string1 = string1.replace(trailingNewLinesRegExp, ''); |
| 883 | string2 = string2.replace(leadingNewLinesRegExp, ''); |
| 884 | |
| 885 | return string1 + separator + string2 |
| 886 | } |
| 887 | |
| 888 | /** |
| 889 | * Determines whether an input can be converted |
no test coverage detected