-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update apache_conf regular expression to exclude whitespace. (#2416)
* Update apache_conf test to check for ServerAlias values. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Add ServerAlias key and values to mock apache conf which includes trailing whitespace. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Updated test to reflect all ServerAlias values being put into a single array item. This is expected as we do not override the key_values default setting of '1' when passing the raw configuration to SimpleConfig. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Update the regular expression to include a conditional with positive lookahead that checks if the line ends with one or more spaces. If the lookahead succeeds we non-greedily capture, and when it fails we greedily capture. Signed-off-by: Miah Johnson <miah@chia-pet.org>
- Loading branch information
1 parent
d86ebee
commit 685ba1b
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters