1
0
mirror of https://github.com/thangisme/notes.git synced 2025-09-24 01:24:16 -04:00

Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/* @flow */
"use strict"
const keywordSets = require("../reference/keywordSets")
const _ = require("lodash")
/**
* Check value is a custom ident
*/
module.exports = function (value/*: string*/)/*: boolean*/ {
const valueLowerCase = value.toLowerCase()
if (keywordSets.counterIncrementKeywords.has(valueLowerCase) || _.isFinite(parseInt(valueLowerCase))) {
return false
}
return true
}