From 826a6a13b76aa7323da9c76b63e27dacc4eb4833 Mon Sep 17 00:00:00 2001 From: Saivann Date: Tue, 16 Dec 2014 19:33:46 -0500 Subject: [PATCH] Detect uppercase characters and punctuation marks in translation urls --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dc16b5b..f4bdf280 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ check-for-non-ascii-urls: ## characters or spaces. $S find _translations -name '*.yml' | while read file \ ; do grep -H . $$file | sed -n -e '/url:/,$$p' \ - | grep -P '[^\x00-\x7f]|[a-z\-] [a-z\-]' \ + | grep -P ': +[a-z0-9\-]+: +.*([^\x00-\x7f]|[^a-z0-9\-"]).*$$' \ ; done | eval $(ERROR_ON_OUTPUT) check-for-broken-kramdown-tables: