Skip to content

Commit d20a069

Browse files
Ramon Medeirosalinefm
Ramon Medeiros
authored andcommitted
Improve UI error codes checking
Signed-off-by: Ramon Medeiros <[email protected]>
1 parent 9feaa04 commit d20a069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_ui_code_errors.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121

2222
errors="$(cat ui/pages/i18n.json.tmpl | grep -o 'KCH[0-9A-Z]*'| sort)"
23-
uiErrors="$(grep -Ro 'KCH[0-9A-Z]*' ui/js/ | cut -d: -f2 | sort| uniq)"
23+
uiErrors="$(grep -ERo 'KCH[0-9A-Z]+' ui/js/ | cut -d: -f2 | sort| uniq)"
2424

2525
# all errors on i18n are present in js/html files: success
2626
if [ "$errors" == "$uiErrors" ]; then

0 commit comments

Comments
 (0)