Merge pull request #13197 from raisedadead/fix/update-gomix-handler
fix: Update Gomix handler
This commit is contained in:
@ -49,13 +49,13 @@ const throwForJsHtml = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
name: 'hyperdev in code',
|
name: 'gomix in code',
|
||||||
description: 'Code with the URL hyperdev.com ' +
|
description: 'Code with the URL gomix.me ' +
|
||||||
'should not be allowed to run',
|
'should not be allowed to run',
|
||||||
detectHyperdevInCode: /hyperdev\.com/gi,
|
detectGomixInCode: /gomix\.me/gi,
|
||||||
thrower: function checkForHyperdev({ contents }) {
|
thrower: function checkForGomix({ contents }) {
|
||||||
if (contents.match(this.detectHyperdevInCode)) {
|
if (contents.match(this.detectGomixInCode)) {
|
||||||
throw new Error('Hyperdev.com should not be in the code');
|
throw new Error('Gomix.me should not be in the code');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user