mirror of
https://github.com/thangisme/notes.git
synced 2026-07-31 02:20:32 -04:00
Initial commit
This commit is contained in:
+19
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user