check-pr: use better regex (#11525)
* check-pr: more descriptive message * check-pr: better regex * Update check-pr.sh
This commit is contained in:
@@ -64,7 +64,7 @@ function check_missing_english_page() {
|
||||
function check_outdated_page() {
|
||||
local page=$1
|
||||
local english_page="pages/${page#pages*\/}"
|
||||
local command_regex='^`.*`$'
|
||||
local command_regex='^`[^`]\+`$'
|
||||
|
||||
if [[ "$page" = "$english_page" ]] || [[ ! -f "$english_page" ]]; then
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user