Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 28, 2023
1 parent 0178ca7 commit 76a1b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions martin/src/fonts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,8 @@ fn parse_font(
name.push_str(style);
}
// Make sure font name has no slashes or commas, replacing them with spaces and de-duplicating spaces
name = name.replace(['/', ','], " ");
name = RE_SPACES
.get_or_init(|| Regex::new(r"\s+").unwrap())
.get_or_init(|| Regex::new(r"(\s|/|,)+").unwrap())
.replace_all(name.as_str(), " ")
.to_string();

Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ validate_log()

# Make sure the log has just the expected warnings, remove them, and test that there are no other ones
test_log_has_str "$LOG_FILE" 'WARN martin::pg::table_source] Table public.table_source has no spatial index on column geom'
test_log_has_str "$LOG_FILE" 'WARN martin::fonts] Ignoring duplicate font Overpass Mono Regular from tests/fixtures/fonts/overpass-mono-regular.ttf because it was already configured from tests/fixtures/fonts/overpass-mono-regular.ttf'
test_log_has_str "$LOG_FILE" 'WARN martin::fonts] Ignoring duplicate font Overpass Mono Regular from tests'

echo "Checking for no other warnings or errors in the log"
if grep -e ' ERROR ' -e ' WARN ' "$LOG_FILE"; then
Expand Down

0 comments on commit 76a1b7f

Please sign in to comment.