mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-05-19 13:44:45 +00:00
Modify input format to newline
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
38bde145f1
commit
dae1e56fb6
6 changed files with 27 additions and 7 deletions
8
src/util.ts
Normal file
8
src/util.ts
Normal 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/);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue