Commit c3f1985
committed
Simplify regex used in
There are 2 simplifications here.
1) A swap to a normal string literal, rather that a raw string literal,
as there is only a single character which needs escaping. 2) A change to
remove the `^` and `$` for matching the start and end of the string.
These were redundant, because `std::regex_match` already requires the
regex to match the full string rather than a partial sub-match.
This simplification is already tested by the "smt_identifier_termt
construction" test in the smt_terms unit tests.is_valid_smt_identifier
1 parent 2ca390c commit c3f1985
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments