Modify input format to newline

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-02-04 01:11:56 +05:30
parent 38bde145f1
commit dae1e56fb6
6 changed files with 27 additions and 7 deletions

8
src/util.ts Normal file
View file

@ -0,0 +1,8 @@
/***************************************************************************************************
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
**************************************************************************************************/
export function splitByNewline(s: string): string[] {
return s.split(/\r?\n/);
}