Skip to content

Commit

Permalink
Accept search of purely scandic letters
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Nov 9, 2022
1 parent 0c4dc22 commit 9b8cfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanitizer/_text.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function _sanitize( raw, clean ){
const text = _.trim( _.trim( raw.text ), QUOTES );

if( !_.isString(text) || _.isEmpty(text) ||
(!text.match(/\d/) && !text.match(/[a-z]/i))
(!text.match(/\d/) && !text.match(/[a-z]/i) && !text.match(/[å|ä|ö]/i))
){
messages.errors.push('invalid param \'text\': text must have alphanumeric content');
} else {
Expand Down

0 comments on commit 9b8cfdd

Please sign in to comment.