mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
ESlint no-useless-escape, no-else-return
This commit is contained in:
@@ -38,7 +38,7 @@ describe('Utility Methods', function () {
|
||||
|
||||
describe('cleanUpTag', function () {
|
||||
it('should cleanUp a tag', function (done) {
|
||||
var cleanedTag = utils.cleanUpTag(',\/#!$%\^\*;TaG1:{}=_`<>\'"~()?\|');
|
||||
var cleanedTag = utils.cleanUpTag(',/#!$%^*;TaG1:{}=_`<>\'"~()?|');
|
||||
assert.equal(cleanedTag, 'tag1');
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user