Skip to content

Commit e6fe615

Browse files
committed
Improve error and warning regex
1 parent a70da5a commit e6fe615

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Please check the official [HBS user manual](https://github.com/m-kru/hbs/blob/ma
3636

3737
### Changed
3838
- Improved error messages.
39+
- Improved regex for errors and warnings.
3940

4041
### Fixed
4142
- Generics handling for xsim.

hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import multiprocessing
1818
this_script_dir = os.path.dirname(os.path.abspath(__file__))
1919
workers = multiprocessing.cpu_count()
2020

21-
error_regexp = re.compile(r"\berror\b")
22-
warning_regexp = re.compile(r"\bwarning\b")
21+
error_regexp = re.compile(r"(?<!\=)\berror\b")
22+
warning_regexp = re.compile(r"(?<!\=)\bwarning\b")
2323

2424
help_help = """Usage:
2525

0 commit comments

Comments
 (0)