mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix some pointed by lint
This commit is contained in:
@@ -14,7 +14,7 @@ export function decodeEntities (text) {
|
|||||||
['lt', '<'],
|
['lt', '<'],
|
||||||
['gt', '>'],
|
['gt', '>'],
|
||||||
['#63', '\\?'],
|
['#63', '\\?'],
|
||||||
['#36', '\\$'],
|
['#36', '\\$']
|
||||||
]
|
]
|
||||||
|
|
||||||
for (var i = 0, max = entities.length; i < max; ++i) {
|
for (var i = 0, max = entities.length; i < max; ++i) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ test('htmlTextHelper#decodeEntities() should return decoded text (string)', t =>
|
|||||||
['var test = \'test\'', 'var test = 'test''],
|
['var test = \'test\'', 'var test = 'test''],
|
||||||
['<a href=\'https://boostnote.io\'>Boostnote', '<a href='https://boostnote.io'>Boostnote'],
|
['<a href=\'https://boostnote.io\'>Boostnote', '<a href='https://boostnote.io'>Boostnote'],
|
||||||
['<?php\n var = \'hoge\';', '<?php\n var = 'hoge';'],
|
['<?php\n var = \'hoge\';', '<?php\n var = 'hoge';'],
|
||||||
['a$\'','a$'']
|
['a$\'', 'a$'']
|
||||||
]
|
]
|
||||||
|
|
||||||
testCases.forEach(testCase => {
|
testCases.forEach(testCase => {
|
||||||
|
|||||||
Reference in New Issue
Block a user