Skip to content

Commit a4b4468

Browse files
authored
Merge pull request #189 from mull-project/strip-only-newlines
Initially strip only newlines from matched lines
2 parents 01cc887 + 5fb3a7a commit a4b4468

File tree

8 files changed

+9
-6
lines changed

8 files changed

+9
-6
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.21
2+
current_version = 0.0.22
33
commit = True
44
tag = True
55

.github/workflows/ci-mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: [3.6, 3.7, 3.8, 3.9]
11+
python-version: [3.7, 3.8, 3.9]
1212

1313
steps:
1414
- uses: actions/checkout@v2

filecheck/filecheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from difflib import SequenceMatcher
1010
from enum import Enum
1111

12-
__version__ = "0.0.21"
12+
__version__ = "0.0.22"
1313

1414
from typing import Optional, List, Iterable
1515

@@ -597,7 +597,7 @@ def exit_handler(code):
597597
failed_implicit_check = None
598598

599599
while True:
600-
line = line.rstrip()
600+
line = line.rstrip("\n\r")
601601

602602
unstripped_line = line
603603

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "filecheck"
3-
version = "0.0.21"
3+
version = "0.0.22"
44
description = "Python port of LLVM's FileCheck, flexible pattern matching file verifier"
55
authors = ["Stanislav Pankevich <[email protected]>"]
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHECK: {{^}}hello {{$}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
RUN: %FILECHECK_EXEC --version | %FILECHECK_TESTER_EXEC %s --match-full-lines
22
CHECK: {{^.*}}FileCheck{{(\.py)?$}}
3-
CHECK: Version: 0.0.21
3+
CHECK: Version: 0.0.22
44
CHECK-EMPTY:

0 commit comments

Comments
 (0)