Add toUpperCase function (#2697)

This commit is contained in:
Aya Morisawa
2018-09-12 03:51:33 +09:00
committed by syuilo
parent ca2230f690
commit 2118fadc48
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { capitalize } from "../../../prelude/string";
import { capitalize, toUpperCase } from "../../../prelude/string";
function escape(text: string) {
return text
@ -92,7 +92,7 @@ const _keywords = [
const keywords = _keywords
.concat(_keywords.map(capitalize))
.concat(_keywords.map(k => k.toUpperCase()))
.concat(_keywords.map(toUpperCase))
.sort((a, b) => b.length - a.length);
const symbols = [