Merge pull request #16194 from raisedadead/fix/rechallenge-transformers

fix(rechallenge): Use includes instead of contains
This commit is contained in:
Berkeley Martinez
2017-12-15 07:29:34 -08:00
committed by GitHub

View File

@ -56,7 +56,7 @@ export const addLoopProtectHtmlJsJsx = _.cond([
testHTMLJS, testHTMLJS,
_.partial( _.partial(
vinyl.testContents, vinyl.testContents,
contents => contents.toLowerCase().contians('<script>') contents => contents.toLowerCase().includes('<script>')
) )
), ),
addLoopProtect addLoopProtect