import{isString as t,isRegExp as e}from"../../utils/validateTypes.mjs";import s from"../../utils/containsString.mjs";import r from"../../utils/matchesStringOrRegExp.mjs";import i from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import o from"../../utils/validateOptions.mjs";const l="comment-word-disallowed-list",a=m(l,{rejected:t=>`Unexpected word matching pattern "${t}"`}),n=m=>(n,p)=>{o(p,l,{actual:m,possible:[t,e]})&&n.walkComments(t=>{const e=t.text;if("/*# "===t.toString().slice(0,4))return;const o=r(e,m)||s(e,m);o&&i({message:a.rejected,messageArgs:[o.pattern],node:t,word:o.substring,result:p,ruleName:l})})};n.primaryOptionArray=!0,n.ruleName=l,n.messages=a,n.meta={url:"https://stylelint.io/user-guide/rules/comment-word-disallowed-list"};export{n as default};