Merge pull request #13197 from raisedadead/fix/update-gomix-handler

fix: Update Gomix handler
pull/13255/head
Berkeley Martinez 2017-02-08 10:12:12 -08:00 committed by GitHub
commit cd79923439
1 changed files with 6 additions and 6 deletions

View File

@ -49,13 +49,13 @@ const throwForJsHtml = {
}
}
}, {
name: 'hyperdev in code',
description: 'Code with the URL hyperdev.com ' +
name: 'gomix in code',
description: 'Code with the URL gomix.me ' +
'should not be allowed to run',
detectHyperdevInCode: /hyperdev\.com/gi,
thrower: function checkForHyperdev({ contents }) {
if (contents.match(this.detectHyperdevInCode)) {
throw new Error('Hyperdev.com should not be in the code');
detectGomixInCode: /gomix\.me/gi,
thrower: function checkForGomix({ contents }) {
if (contents.match(this.detectGomixInCode)) {
throw new Error('Gomix.me should not be in the code');
}
}
}