You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2022/07/14 14:03:34 UTC

[beam] branch master updated: Replace \r\n, not just \n

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 67e6726ffeb Replace \r\n, not just \n
67e6726ffeb is described below

commit 67e6726ffeb47d2ada0122369fa230833ce0f026
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Jul 14 10:03:28 2022 -0400

    Replace \r\n, not just \n
---
 .github/workflows/self-assign.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/self-assign.yml b/.github/workflows/self-assign.yml
index c75d7c1f884..dff936741bf 100644
--- a/.github/workflows/self-assign.yml
+++ b/.github/workflows/self-assign.yml
@@ -26,7 +26,7 @@ jobs:
     - uses: actions/github-script@v6
       with:
         script: |
-          const body = context.payload.comment.body.replace( /\n/g, " " ).split(' ');
+          const body = context.payload.comment.body.replace( /\r\n/g, " " ).replace( /\n/g, " " ).split(' ');
           console.log(body);
           for (let i = 0; i < body.length; i++) {
             const bodyString = body[i].toLowerCase();