1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

Fix some pointed by lint

This commit is contained in:
asmsuechan
2017-06-12 18:12:11 +09:00
parent afb13af7a1
commit 244a06eea6
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ export function decodeEntities (text) {
['lt', '<'],
['gt', '>'],
['#63', '\\?'],
['#36', '\\$'],
['#36', '\\$']
]
for (var i = 0, max = entities.length; i < max; ++i) {

View File

@@ -29,7 +29,7 @@ test('htmlTextHelper#decodeEntities() should return decoded text (string)', t =>
['var test = \'test\'', 'var test = &apos;test&apos;'],
['<a href=\'https://boostnote.io\'>Boostnote', '&lt;a href=&apos;https://boostnote.io&apos;&gt;Boostnote'],
['<?php\n var = \'hoge\';', '&lt;&#63;php\n var = &apos;hoge&apos;;'],
['a$\'','a&#36;&apos;']
['a$\'', 'a&#36;&apos;']
]
testCases.forEach(testCase => {