このエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(英語):
string does not contain
対処
関連リンク
JavaScript Regex: Finding a String that does not contain
Check if string does not contain URL segment ...
https://stackoverflow.com/questions/30529476/check-if-string-does-not-contain-url-segment-and-match-・・・
If string does NOT contain and REGEX
https://stackoverflow.com/questions/55641588/if-string-does-not-contain-and-regex